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.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.514/2.514, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.907e-05/3.947e-05, allocations: 7.984 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3967/0.3968, allocations: 54.86 MB / 364.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1841/0.5809, allocations: 99.21 MB / 463.8 MB, free: 13.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.5812, allocations: 71.97 kB / 463.9 MB, free: 13.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8634/1.445, allocations: 128.6 MB / 0.5786 GB, free: 107.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.245e-06/1.445, allocations: 4 kB / 0.5787 GB, free: 107.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003682/1.445, allocations: 114.7 kB / 0.5788 GB, free: 107.3 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.02605/1.471, allocations: 6.24 MB / 0.5849 GB, free: 103.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/1.471, allocations: 15.5 kB / 0.5849 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005222/1.476, allocations: 1.092 MB / 0.5859 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04851/1.525, allocations: 6.458 MB / 0.5922 GB, free: 99.86 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02815/1.553, allocations: 8.565 MB / 0.6006 GB, free: 92.79 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005037/1.554, allocations: 441 kB / 0.601 GB, free: 92.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003787/1.558, allocations: 0.5814 MB / 0.6016 GB, free: 91.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04877/1.606, allocations: 15.3 MB / 0.6165 GB, free: 75.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004238/1.607, allocations: 55.5 kB / 0.6166 GB, free: 75.93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003535/1.61, allocations: 266.6 kB / 0.6168 GB, free: 75.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004185/1.615, allocations: 1.69 MB / 0.6185 GB, free: 74.03 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04487/1.66, allocations: 14.64 MB / 0.6328 GB, free: 59.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1215/1.781, allocations: 56.27 MB / 0.6877 GB, free: 2.227 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03192/1.813, allocations: 7.967 MB / 0.6955 GB, free: 10.03 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01145/1.825, allocations: 4.684 MB / 0.7001 GB, free: 5.336 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003368/1.828, allocations: 2.21 MB / 0.7023 GB, free: 2.758 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.849e-05/1.828, allocations: 68.89 kB / 0.7023 GB, free: 2.684 MB / 474.7 MB Notification: Performance of pre-optimization done (n=367): time 8.265e-06/1.828, allocations: 3.938 kB / 0.7023 GB, free: 2.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=419): time 0.4885/2.317, allocations: 33.37 MB / 0.7349 GB, free: 111 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/2.317, allocations: 119.8 kB / 0.735 GB, free: 110.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009492/2.326, allocations: 3.814 MB / 0.7388 GB, free: 109.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001178/2.328, allocations: 88.31 kB / 0.7388 GB, free: 109.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003269/2.331, allocations: 3.777 MB / 0.7425 GB, free: 106.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002648/2.334, allocations: 1.494 MB / 0.744 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001426/2.335, allocations: 151.3 kB / 0.7441 GB, free: 105.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007704/2.336, allocations: 0.6412 MB / 0.7448 GB, free: 105.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009908/2.346, allocations: 3.826 MB / 0.7485 GB, free: 104 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01262/2.358, allocations: 7.61 MB / 0.7559 GB, free: 97.76 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/2.371, allocations: 5.416 MB / 0.7612 GB, free: 96.17 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001444/2.372, allocations: 35.97 kB / 0.7612 GB, free: 96.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04336/2.415, allocations: 13.78 MB / 0.7747 GB, free: 91.17 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/2.415, allocations: 65 kB / 0.7748 GB, free: 91.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/2.415, allocations: 132 kB / 0.7749 GB, free: 90.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01349/2.429, allocations: 2.632 MB / 0.7775 GB, free: 89.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01391/2.443, allocations: 1.942 MB / 0.7794 GB, free: 87.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02953/2.472, allocations: 13.6 MB / 0.7926 GB, free: 75.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009682/2.482, allocations: 477.4 kB / 0.7931 GB, free: 75.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002159/2.484, allocations: 431.7 kB / 0.7935 GB, free: 75.07 MB / 474.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 () * 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.002985/2.487, allocations: 0.6614 MB / 0.7942 GB, free: 74.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/2.489, allocations: 462 kB / 0.7946 GB, free: 73.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03285/2.522, allocations: 10.35 MB / 0.8047 GB, free: 65.76 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001189/2.522, allocations: 68.34 kB / 0.8048 GB, free: 65.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.962e-05/2.522, allocations: 8 kB / 0.8048 GB, free: 65.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/2.522, allocations: 19.12 kB / 0.8048 GB, free: 65.69 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06335/2.585, allocations: 21 MB / 0.8253 GB, free: 46.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.369e-05/2.586, allocations: 12 kB / 0.8253 GB, free: 46.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007465/2.593, allocations: 0.7916 MB / 0.8261 GB, free: 45.56 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/2.606, allocations: 2.409 MB / 0.8284 GB, free: 43.15 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001155/2.608, allocations: 77.69 kB / 0.8285 GB, free: 43.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02656/2.634, allocations: 12.35 MB / 0.8406 GB, free: 30.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/2.634, allocations: 19.94 kB / 0.8406 GB, free: 30.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03983/2.674, allocations: 16.13 MB / 0.8563 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00476/2.679, allocations: 1.159 MB / 0.8575 GB, free: 12.44 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001631/2.681, allocations: 78.27 kB / 0.8575 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005674/2.686, allocations: 299.5 kB / 0.8578 GB, free: 12.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001271/2.688, allocations: 262 kB / 0.8581 GB, free: 11.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004738/2.688, allocations: 114.5 kB / 0.8582 GB, free: 11.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006377/2.694, allocations: 2.671 MB / 0.8608 GB, free: 9.027 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.694, allocations: 0 / 0.8608 GB, free: 9.027 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009963/2.704, allocations: 1.647 MB / 0.8624 GB, free: 7.387 MB / 474.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 () * 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.04671/2.751, allocations: 19.34 MB / 0.8813 GB, free: 3.59 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3754/3.127, allocations: 9.595 MB / 0.8907 GB, free: 123.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.728e-05/3.127, allocations: 4.969 kB / 0.8907 GB, free: 123.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01197/3.139, allocations: 4.203 MB / 0.8948 GB, free: 123.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006163/3.145, allocations: 0.6359 MB / 0.8954 GB, free: 123.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05045/3.195, allocations: 16.03 MB / 0.911 GB, free: 120.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01081/3.206, allocations: 4.759 MB / 0.9157 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008008/3.214, allocations: 2.961 MB / 0.9186 GB, free: 116.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.713e-06/3.214, allocations: 0 / 0.9186 GB, free: 116.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.35/8.565, allocations: 173.3 MB / 1.088 GB, free: 130.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat