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.FreeMotion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.696/2.696, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.329e-05/2.329e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3664, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1744/0.5409, allocations: 95.27 MB / 453.4 MB, free: 15.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.5412, allocations: 75.95 kB / 453.5 MB, free: 15.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6659/1.207, allocations: 85.13 MB / 0.526 GB, free: 42.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.207, allocations: 0 / 0.526 GB, free: 42.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001807/1.207, allocations: 75.94 kB / 0.5261 GB, free: 42.11 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01716/1.225, allocations: 3.69 MB / 0.5297 GB, free: 38.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.269e-05/1.225, allocations: 15.97 kB / 0.5297 GB, free: 38.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0395/1.264, allocations: 3.652 MB / 0.5332 GB, free: 34.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02426/1.289, allocations: 4.914 MB / 0.538 GB, free: 29.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003091/1.289, allocations: 124 kB / 0.5382 GB, free: 29.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002647/1.292, allocations: 231.8 kB / 0.5384 GB, free: 29.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01671/1.308, allocations: 7.271 MB / 0.5455 GB, free: 22.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/1.334, allocations: 9.579 MB / 0.5548 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002718/1.334, allocations: 23.81 kB / 0.5549 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002372/1.337, allocations: 20 kB / 0.5549 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002659/1.339, allocations: 1.188 MB / 0.556 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07825/1.418, allocations: 33.99 MB / 0.5892 GB, free: 8.137 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008737/1.427, allocations: 4.059 MB / 0.5932 GB, free: 3.855 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005309/1.432, allocations: 2.12 MB / 0.5953 GB, free: 1.734 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002087/1.434, allocations: 1.323 MB / 0.5966 GB, free: 196 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.266e-05/1.434, allocations: 48.56 kB / 0.5966 GB, free: 136 kB / 426.7 MB Notification: Performance of pre-optimization done (n=247): time 6.583e-06/1.434, allocations: 4 kB / 0.5966 GB, free: 132 kB / 426.7 MB Notification: Performance of matching and sorting (n=264): time 0.05838/1.493, allocations: 14.84 MB / 0.6111 GB, free: 1.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/1.493, allocations: 73.41 kB / 0.6112 GB, free: 1.094 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005704/1.498, allocations: 2.363 MB / 0.6135 GB, free: 14.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006855/1.499, allocations: 25.7 kB / 0.6135 GB, free: 14.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003216/1.502, allocations: 2.819 MB / 0.6163 GB, free: 11.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001899/1.504, allocations: 0.9517 MB / 0.6172 GB, free: 10.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000662/1.505, allocations: 0 / 0.6172 GB, free: 10.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00061/1.506, allocations: 0.5787 MB / 0.6177 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006651/1.512, allocations: 2.358 MB / 0.6201 GB, free: 7.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0104/1.523, allocations: 5.605 MB / 0.6255 GB, free: 0.6836 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3599/1.883, allocations: 3.677 MB / 0.6291 GB, free: 111.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001908/1.883, allocations: 36.59 kB / 0.6292 GB, free: 111.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=798) (initialization): time 0.04763/1.931, allocations: 8.957 MB / 0.6379 GB, free: 110.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/1.931, allocations: 54.53 kB / 0.638 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03218/1.963, allocations: 4.483 MB / 0.6423 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0239/1.987, allocations: 2.059 MB / 0.6443 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008586/1.996, allocations: 1.37 MB / 0.6457 GB, free: 110.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/2.006, allocations: 4.801 MB / 0.6504 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006652/2.013, allocations: 296.2 kB / 0.6506 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001555/2.014, allocations: 356.3 kB / 0.651 GB, free: 108 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 524 * Number of states: 0 () * Number of discrete variables: 21 (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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (736): * Single equations (assignments): 724 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001664/2.016, allocations: 394 kB / 0.6514 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01534/2.031, allocations: 4.71 MB / 0.656 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/2.032, allocations: 285.1 kB / 0.6562 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01723/2.05, allocations: 5.238 MB / 0.6614 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01514/2.065, allocations: 4.516 MB / 0.6658 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/2.065, allocations: 3.062 kB / 0.6658 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.677e-05/2.065, allocations: 14.56 kB / 0.6658 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03751/2.103, allocations: 13.56 MB / 0.679 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.628e-05/2.103, allocations: 12 kB / 0.679 GB, free: 98.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003792/2.107, allocations: 426.2 kB / 0.6794 GB, free: 98.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007673/2.114, allocations: 1.172 MB / 0.6806 GB, free: 97.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006263/2.115, allocations: 31.83 kB / 0.6806 GB, free: 97.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006571/2.121, allocations: 4.347 MB / 0.6849 GB, free: 93.75 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001026/2.123, allocations: 1.423 MB / 0.6862 GB, free: 92.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02243/2.145, allocations: 8.747 MB / 0.6948 GB, free: 84.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009804/2.146, allocations: 341.9 kB / 0.6951 GB, free: 83.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008825/2.147, allocations: 23.84 kB / 0.6951 GB, free: 83.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002972/2.15, allocations: 158.4 kB / 0.6953 GB, free: 83.82 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006186/2.151, allocations: 176.2 kB / 0.6955 GB, free: 83.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002662/2.151, allocations: 81.66 kB / 0.6955 GB, free: 83.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003011/2.154, allocations: 1.553 MB / 0.697 GB, free: 82.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.42e-07/2.154, allocations: 0 / 0.697 GB, free: 82.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006643/2.161, allocations: 0.96 MB / 0.698 GB, free: 81.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 195 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02086/2.182, allocations: 12 MB / 0.7097 GB, free: 70.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01482/2.196, allocations: 6.261 MB / 0.7158 GB, free: 64.58 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/2.196, allocations: 4 kB / 0.7158 GB, free: 64.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00764/2.204, allocations: 2.831 MB / 0.7186 GB, free: 61.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/2.207, allocations: 247.9 kB / 0.7188 GB, free: 61.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02978/2.236, allocations: 10.85 MB / 0.7294 GB, free: 50.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/2.241, allocations: 3.394 MB / 0.7327 GB, free: 47.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00401/2.245, allocations: 1.862 MB / 0.7346 GB, free: 45.43 MB / 458.7 MB Notification: Performance of SimCode: time 1.453e-06/2.245, allocations: 0 / 0.7346 GB, free: 45.43 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.172/7.417, allocations: 149.2 MB / 0.8803 GB, free: 105.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat