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.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.192/2.192, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006/0.0006, allocations: 12 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3515, allocations: 54.87 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1761/0.5277, allocations: 96.02 MB / 465.4 MB, free: 10.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.528, allocations: 83.89 kB / 465.5 MB, free: 10.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6429/1.171, allocations: 85.6 MB / 0.5381 GB, free: 33.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.846e-06/1.171, allocations: 0 / 0.5381 GB, free: 33.07 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001665/1.171, allocations: 71.94 kB / 0.5382 GB, free: 33 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01421/1.185, allocations: 3.791 MB / 0.5419 GB, free: 29.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/1.186, allocations: 8.031 kB / 0.5419 GB, free: 29.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003584/1.189, allocations: 0.7795 MB / 0.5427 GB, free: 28.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02565/1.215, allocations: 3.504 MB / 0.5461 GB, free: 24.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01537/1.23, allocations: 4.171 MB / 0.5502 GB, free: 20.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004114/1.231, allocations: 299.6 kB / 0.5505 GB, free: 20.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002934/1.234, allocations: 387.8 kB / 0.5508 GB, free: 19.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03076/1.264, allocations: 10.3 MB / 0.5609 GB, free: 9.188 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002052/1.265, allocations: 27.72 kB / 0.5609 GB, free: 9.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002243/1.267, allocations: 175.9 kB / 0.5611 GB, free: 8.988 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002635/1.27, allocations: 1.211 MB / 0.5623 GB, free: 7.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02811/1.298, allocations: 10.01 MB / 0.572 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08281/1.381, allocations: 35.48 MB / 0.6067 GB, free: 9.371 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01613/1.397, allocations: 4.954 MB / 0.6115 GB, free: 4.184 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002736/1.4, allocations: 1.888 MB / 0.6134 GB, free: 1.965 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.266e-05/1.4, allocations: 48.56 kB / 0.6134 GB, free: 1.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=229): time 7.013e-06/1.4, allocations: 0 / 0.6134 GB, free: 1.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=235): time 0.05881/1.459, allocations: 14.35 MB / 0.6274 GB, free: 3.391 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/1.459, allocations: 81.28 kB / 0.6275 GB, free: 3.297 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006135/1.465, allocations: 2.362 MB / 0.6298 GB, free: 0.918 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005733/1.466, allocations: 61.69 kB / 0.6299 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/1.469, allocations: 2.692 MB / 0.6325 GB, free: 14.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.47, allocations: 0.8596 MB / 0.6333 GB, free: 13.25 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006753/1.471, allocations: 100 kB / 0.6334 GB, free: 13.15 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006119/1.472, allocations: 0.5379 MB / 0.634 GB, free: 12.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006251/1.478, allocations: 2.177 MB / 0.6361 GB, free: 10.42 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009235/1.487, allocations: 5.069 MB / 0.641 GB, free: 3.922 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00859/1.496, allocations: 3.319 MB / 0.6443 GB, free: 0.6016 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001058/1.496, allocations: 28 kB / 0.6443 GB, free: 0.5742 MB / 474.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.3959/1.892, allocations: 7.787 MB / 0.6519 GB, free: 121.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.624e-05/1.892, allocations: 53.52 kB / 0.652 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/1.892, allocations: 100.5 kB / 0.6521 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003868/1.896, allocations: 0.7978 MB / 0.6528 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007319/1.903, allocations: 1.197 MB / 0.654 GB, free: 121.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008317/1.912, allocations: 4.234 MB / 0.6581 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004969/1.917, allocations: 297.2 kB / 0.6584 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/1.918, allocations: 303.5 kB / 0.6587 GB, free: 120.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * Number of states: 0 () * Number of discrete variables: 24 (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 (636): * Single equations (assignments): 629 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005179/1.923, allocations: 2.047 MB / 0.6607 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006308/1.924, allocations: 263.9 kB / 0.661 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/1.936, allocations: 4.699 MB / 0.6656 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/1.936, allocations: 46.64 kB / 0.6656 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.936, allocations: 3.406 kB / 0.6656 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.798e-05/1.936, allocations: 6.328 kB / 0.6656 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/1.963, allocations: 10.62 MB / 0.676 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.731e-05/1.964, allocations: 9.312 kB / 0.676 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003033/1.967, allocations: 364 kB / 0.6763 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003446/1.97, allocations: 0.6525 MB / 0.677 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004124/1.97, allocations: 47.16 kB / 0.677 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007166/1.978, allocations: 3.688 MB / 0.6806 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/1.978, allocations: 14.52 kB / 0.6806 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01627/1.994, allocations: 7.662 MB / 0.6881 GB, free: 112.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002022/1.996, allocations: 0.6448 MB / 0.6887 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007277/1.997, allocations: 40.19 kB / 0.6888 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/1.999, allocations: 137.8 kB / 0.6889 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005152/2, allocations: 129.4 kB / 0.689 GB, free: 112.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/2, allocations: 68.25 kB / 0.6891 GB, free: 112.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003472/2.003, allocations: 1.617 MB / 0.6907 GB, free: 111.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.152e-06/2.003, allocations: 0 / 0.6907 GB, free: 111.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006103/2.01, allocations: 0.941 MB / 0.6916 GB, free: 111.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0174/2.027, allocations: 10.09 MB / 0.7015 GB, free: 104.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01108/2.038, allocations: 5.32 MB / 0.7066 GB, free: 99.87 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/2.038, allocations: 4 kB / 0.7067 GB, free: 99.86 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004244/2.042, allocations: 2.019 MB / 0.7086 GB, free: 98.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00228/2.045, allocations: 309.4 kB / 0.7089 GB, free: 97.81 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0779/2.123, allocations: 99.25 MB / 0.8058 GB, free: 15.12 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007358/2.13, allocations: 3.309 MB / 0.8091 GB, free: 12.56 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005125/2.135, allocations: 1.817 MB / 0.8108 GB, free: 10.87 MB / 490.7 MB Notification: Performance of SimCode: time 1.423e-06/2.135, allocations: 0 / 0.8108 GB, free: 10.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.8/6.935, allocations: 91.39 MB / 0.9001 GB, free: 96.92 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat