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.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.446/2.446, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006177/0.0006179, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3525, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2024/0.5549, allocations: 95.32 MB / 464.7 MB, free: 11.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/0.5553, allocations: 83.95 kB / 464.8 MB, free: 11.06 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6433/1.199, allocations: 82.63 MB / 0.5346 GB, free: 37 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.199, allocations: 0 / 0.5346 GB, free: 37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001783/1.199, allocations: 68 kB / 0.5346 GB, free: 36.93 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.02281/1.222, allocations: 3.996 MB / 0.5385 GB, free: 32.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/1.222, allocations: 12.03 kB / 0.5385 GB, free: 32.86 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003931/1.226, allocations: 0.7577 MB / 0.5393 GB, free: 32.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04041/1.266, allocations: 5.867 MB / 0.545 GB, free: 26.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0202/1.286, allocations: 5.317 MB / 0.5502 GB, free: 20.83 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/1.287, allocations: 279.8 kB / 0.5505 GB, free: 20.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002653/1.289, allocations: 375.7 kB / 0.5508 GB, free: 20.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03246/1.322, allocations: 10.41 MB / 0.561 GB, free: 9.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001871/1.322, allocations: 31.75 kB / 0.561 GB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002075/1.324, allocations: 171.9 kB / 0.5612 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00236/1.327, allocations: 1.148 MB / 0.5623 GB, free: 7.922 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02972/1.356, allocations: 10.1 MB / 0.5722 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08553/1.442, allocations: 37.33 MB / 0.6086 GB, free: 7.551 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02055/1.463, allocations: 5.596 MB / 0.6141 GB, free: 1.723 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002737/1.465, allocations: 1.88 MB / 0.6159 GB, free: 15.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.841e-05/1.466, allocations: 52.56 kB / 0.616 GB, free: 15.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 9.057e-06/1.466, allocations: 0 / 0.616 GB, free: 15.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.06481/1.53, allocations: 15.5 MB / 0.6311 GB, free: 15.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001813/1.532, allocations: 1.519 MB / 0.6326 GB, free: 14.06 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006147/1.538, allocations: 2.492 MB / 0.635 GB, free: 11.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000676/1.539, allocations: 53.69 kB / 0.6351 GB, free: 11.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003062/1.542, allocations: 2.668 MB / 0.6377 GB, free: 8.789 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001715/1.544, allocations: 0.8519 MB / 0.6385 GB, free: 7.926 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008006/1.545, allocations: 104 kB / 0.6386 GB, free: 7.824 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005613/1.545, allocations: 0.5423 MB / 0.6392 GB, free: 7.273 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007433/1.553, allocations: 2.599 MB / 0.6417 GB, free: 4.668 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3411/1.894, allocations: 5.567 MB / 0.6471 GB, free: 122.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/1.904, allocations: 3.787 MB / 0.6508 GB, free: 122.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000187/1.904, allocations: 33.16 kB / 0.6509 GB, free: 122.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1171/2.022, allocations: 18.89 MB / 0.6693 GB, free: 121.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/2.022, allocations: 52.91 kB / 0.6694 GB, free: 121.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0825/2.104, allocations: 12.01 MB / 0.6811 GB, free: 121.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09388/2.198, allocations: 10.31 MB / 0.6912 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0107/2.209, allocations: 1.24 MB / 0.6924 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06483/2.274, allocations: 17.25 MB / 0.7092 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006826/2.281, allocations: 451.4 kB / 0.7096 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0014/2.282, allocations: 313.1 kB / 0.7099 GB, free: 104.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * 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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (649): * Single equations (assignments): 638 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.005379/2.288, allocations: 2.016 MB / 0.7119 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006676/2.288, allocations: 270.4 kB / 0.7122 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/2.303, allocations: 5.103 MB / 0.7172 GB, free: 97.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01238/2.315, allocations: 4.389 MB / 0.7214 GB, free: 93.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.647e-05/2.315, allocations: 3.984 kB / 0.7214 GB, free: 93.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-05/2.315, allocations: 7.969 kB / 0.7214 GB, free: 93.19 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03364/2.349, allocations: 12.98 MB / 0.7341 GB, free: 80.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.122e-05/2.349, allocations: 8 kB / 0.7341 GB, free: 80.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003469/2.352, allocations: 410 kB / 0.7345 GB, free: 79.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00526/2.358, allocations: 0.9375 MB / 0.7354 GB, free: 78.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007144/2.359, allocations: 53.16 kB / 0.7355 GB, free: 78.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/2.369, allocations: 5.552 MB / 0.7409 GB, free: 72.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001206/2.37, allocations: 1.475 MB / 0.7423 GB, free: 71.37 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0183/2.388, allocations: 8.331 MB / 0.7505 GB, free: 62.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008565/2.389, allocations: 325.7 kB / 0.7508 GB, free: 62.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000883/2.39, allocations: 48.3 kB / 0.7508 GB, free: 62.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002884/2.393, allocations: 196.2 kB / 0.751 GB, free: 62.28 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006265/2.394, allocations: 139.4 kB / 0.7512 GB, free: 62.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002464/2.394, allocations: 68.67 kB / 0.7512 GB, free: 62.08 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003576/2.397, allocations: 1.698 MB / 0.7529 GB, free: 60.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.052e-06/2.397, allocations: 3.938 kB / 0.7529 GB, free: 60.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006886/2.404, allocations: 1.104 MB / 0.754 GB, free: 59.28 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01996/2.424, allocations: 10.94 MB / 0.7646 GB, free: 48.14 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01695/2.441, allocations: 6.54 MB / 0.771 GB, free: 41.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/2.441, allocations: 7.5 kB / 0.771 GB, free: 41.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006184/2.448, allocations: 2.521 MB / 0.7735 GB, free: 39.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/2.45, allocations: 339 kB / 0.7738 GB, free: 38.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4919/2.942, allocations: 111.3 MB / 0.8825 GB, free: 98.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007045/2.95, allocations: 3.25 MB / 0.8857 GB, free: 98.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004656/2.954, allocations: 1.705 MB / 0.8874 GB, free: 98.14 MB / 490.7 MB Notification: Performance of SimCode: time 9.32e-07/2.954, allocations: 0 / 0.8874 GB, free: 98.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.794/7.748, allocations: 129.1 MB / 1.013 GB, free: 145.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat