Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.209/2.209, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004458/0.0004458, allocations: 16 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3863, allocations: 48.7 MB / 331.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1924/0.5787, allocations: 92.49 MB / 423.9 MB, free: 1.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/0.5791, allocations: 79.95 kB / 423.9 MB, free: 1.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.99/1.569, allocations: 128.5 MB / 0.5394 GB, free: 57.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.336e-06/1.569, allocations: 4 kB / 0.5395 GB, free: 57.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004035/1.57, allocations: 120 kB / 0.5396 GB, free: 57.55 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02952/1.599, allocations: 6.676 MB / 0.5461 GB, free: 50.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/1.599, allocations: 8.031 kB / 0.5461 GB, free: 50.79 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006386/1.606, allocations: 1.096 MB / 0.5472 GB, free: 49.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04846/1.654, allocations: 6.45 MB / 0.5535 GB, free: 43.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02808/1.682, allocations: 8.596 MB / 0.5619 GB, free: 34.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006139/1.683, allocations: 439.4 kB / 0.5623 GB, free: 34.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004507/1.687, allocations: 0.5778 MB / 0.5628 GB, free: 33.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05102/1.739, allocations: 15.42 MB / 0.5779 GB, free: 17.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004154/1.739, allocations: 59.48 kB / 0.578 GB, free: 17.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003775/1.743, allocations: 263.8 kB / 0.5782 GB, free: 17.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0042/1.747, allocations: 1.699 MB / 0.5799 GB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04654/1.794, allocations: 14.82 MB / 0.5943 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4626/2.256, allocations: 56.24 MB / 0.6493 GB, free: 61.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03101/2.287, allocations: 8.019 MB / 0.6571 GB, free: 60.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002864/2.29, allocations: 2.215 MB / 0.6593 GB, free: 58.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.596e-05/2.29, allocations: 65.48 kB / 0.6593 GB, free: 57.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 8.917e-06/2.29, allocations: 0.6875 kB / 0.6593 GB, free: 57.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1748/2.465, allocations: 39.68 MB / 0.6981 GB, free: 53.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/2.465, allocations: 114.4 kB / 0.6982 GB, free: 52.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009104/2.474, allocations: 3.857 MB / 0.7019 GB, free: 51.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001259/2.476, allocations: 83.77 kB / 0.702 GB, free: 51.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003461/2.479, allocations: 3.784 MB / 0.7057 GB, free: 48.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002801/2.482, allocations: 1.484 MB / 0.7072 GB, free: 47.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009979/2.483, allocations: 149.9 kB / 0.7073 GB, free: 47.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005462/2.484, allocations: 0.639 MB / 0.7079 GB, free: 47.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009438/2.493, allocations: 3.888 MB / 0.7117 GB, free: 45.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/2.506, allocations: 7.674 MB / 0.7192 GB, free: 39.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01277/2.519, allocations: 5.428 MB / 0.7245 GB, free: 36.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/2.519, allocations: 40 kB / 0.7246 GB, free: 36.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04304/2.562, allocations: 13.9 MB / 0.7381 GB, free: 25.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/2.563, allocations: 64.62 kB / 0.7382 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/2.563, allocations: 128 kB / 0.7383 GB, free: 25.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/2.576, allocations: 2.634 MB / 0.7409 GB, free: 23.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01357/2.59, allocations: 1.948 MB / 0.7428 GB, free: 21.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02997/2.62, allocations: 14.06 MB / 0.7565 GB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009605/2.629, allocations: 495 kB / 0.757 GB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002169/2.631, allocations: 430.5 kB / 0.7574 GB, free: 9.078 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (920): * Single equations (assignments): 912 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009101/2.641, allocations: 2.904 MB / 0.7603 GB, free: 6.562 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/2.642, allocations: 464.2 kB / 0.7607 GB, free: 6.105 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03454/2.677, allocations: 10.42 MB / 0.7709 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001522/2.677, allocations: 71.91 kB / 0.7709 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-05/2.677, allocations: 12 kB / 0.771 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001255/2.677, allocations: 19.88 kB / 0.771 GB, free: 12.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07295/2.75, allocations: 21.06 MB / 0.7915 GB, free: 7.086 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.241e-05/2.75, allocations: 8 kB / 0.7916 GB, free: 7.078 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007604/2.758, allocations: 0.7878 MB / 0.7923 GB, free: 6.289 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01387/2.772, allocations: 2.4 MB / 0.7947 GB, free: 3.883 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001298/2.773, allocations: 81.09 kB / 0.7947 GB, free: 3.805 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3585/3.132, allocations: 12.82 MB / 0.8073 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.951e-05/3.132, allocations: 17.72 kB / 0.8073 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04314/3.175, allocations: 16.23 MB / 0.8231 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004481/3.179, allocations: 1.162 MB / 0.8243 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001944/3.181, allocations: 76.97 kB / 0.8243 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005999/3.187, allocations: 300.8 kB / 0.8246 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001733/3.189, allocations: 263 kB / 0.8249 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005247/3.19, allocations: 109.1 kB / 0.825 GB, free: 106.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006997/3.197, allocations: 2.712 MB / 0.8276 GB, free: 106.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/3.197, allocations: 3.531 kB / 0.8276 GB, free: 106.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01095/3.208, allocations: 1.652 MB / 0.8292 GB, free: 106.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04418/3.252, allocations: 19.46 MB / 0.8482 GB, free: 97.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02413/3.276, allocations: 9.714 MB / 0.8577 GB, free: 94.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.787e-05/3.276, allocations: 4.656 kB / 0.8577 GB, free: 94.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01089/3.287, allocations: 4.242 MB / 0.8619 GB, free: 92.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006403/3.294, allocations: 0.6317 MB / 0.8625 GB, free: 92.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4793/3.773, allocations: 145.1 MB / 1.004 GB, free: 115.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.011/3.784, allocations: 4.749 MB / 1.009 GB, free: 114.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008019/3.792, allocations: 2.961 MB / 1.012 GB, free: 114.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.372e-06/3.792, allocations: 0 / 1.012 GB, free: 114.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.574/9.366, allocations: 172.4 MB / 1.18 GB, free: 127.9 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat