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.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.202/2.202, allocations: 209.2 MB / 224.8 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005525/0.0005525, allocations: 12 kB / 282.7 MB, free: 9.672 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1104, allocations: 48.7 MB / 331.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5783/0.6887, allocations: 88.59 MB / 419.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.6891, allocations: 78.14 kB / 420 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.712/1.401, allocations: 82.6 MB / 0.4908 GB, free: 93.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.867e-06/1.401, allocations: 0 / 0.4908 GB, free: 93.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000221/1.401, allocations: 75.03 kB / 0.4909 GB, free: 93.36 MB / 410.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.0242/1.426, allocations: 4.01 MB / 0.4948 GB, free: 91.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/1.426, allocations: 8.656 kB / 0.4948 GB, free: 91.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004251/1.43, allocations: 0.7487 MB / 0.4956 GB, free: 91.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0424/1.472, allocations: 5.874 MB / 0.5013 GB, free: 91.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0214/1.494, allocations: 5.31 MB / 0.5065 GB, free: 90.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000494/1.494, allocations: 281.4 kB / 0.5068 GB, free: 90.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002905/1.497, allocations: 366.1 kB / 0.5071 GB, free: 90.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03389/1.531, allocations: 10.41 MB / 0.5173 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002647/1.532, allocations: 40.91 kB / 0.5173 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002903/1.535, allocations: 170.9 kB / 0.5175 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/1.537, allocations: 1.149 MB / 0.5186 GB, free: 89.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02927/1.567, allocations: 10.11 MB / 0.5285 GB, free: 87.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07345/1.64, allocations: 37.31 MB / 0.5649 GB, free: 63.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01813/1.658, allocations: 5.606 MB / 0.5704 GB, free: 58.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0022/1.661, allocations: 1.878 MB / 0.5722 GB, free: 55.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.525e-05/1.661, allocations: 57.22 kB / 0.5723 GB, free: 55.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 8.736e-06/1.661, allocations: 0 / 0.5723 GB, free: 55.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=231): time 0.05734/1.718, allocations: 15.49 MB / 0.5874 GB, free: 41.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001337/1.72, allocations: 1.527 MB / 0.5889 GB, free: 39.49 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00504/1.725, allocations: 2.488 MB / 0.5913 GB, free: 36.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007192/1.725, allocations: 57.7 kB / 0.5914 GB, free: 36.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/1.728, allocations: 2.659 MB / 0.594 GB, free: 34.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001652/1.729, allocations: 0.8514 MB / 0.5948 GB, free: 33.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008913/1.73, allocations: 111.7 kB / 0.5949 GB, free: 33.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004999/1.731, allocations: 0.5462 MB / 0.5955 GB, free: 32.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006619/1.738, allocations: 2.599 MB / 0.598 GB, free: 30.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008778/1.746, allocations: 5.567 MB / 0.6034 GB, free: 23.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008929/1.755, allocations: 3.79 MB / 0.6071 GB, free: 19.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.792e-05/1.756, allocations: 39.94 kB / 0.6072 GB, free: 19.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1586/1.914, allocations: 18.89 MB / 0.6256 GB, free: 372 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.784e-05/1.914, allocations: 51.94 kB / 0.6257 GB, free: 320 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08876/2.003, allocations: 12.01 MB / 0.6374 GB, free: 4.285 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4421/2.445, allocations: 10.3 MB / 0.6474 GB, free: 95.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008259/2.454, allocations: 1.24 MB / 0.6487 GB, free: 95.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05219/2.506, allocations: 17.25 MB / 0.6655 GB, free: 93.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007212/2.513, allocations: 450.6 kB / 0.6659 GB, free: 93.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/2.515, allocations: 313.1 kB / 0.6662 GB, free: 93.34 MB / 426.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.005936/2.521, allocations: 2.014 MB / 0.6682 GB, free: 93.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00075/2.521, allocations: 274.9 kB / 0.6685 GB, free: 93.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0153/2.537, allocations: 5.1 MB / 0.6734 GB, free: 93.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01317/2.55, allocations: 4.387 MB / 0.6777 GB, free: 91.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/2.55, allocations: 3.5 kB / 0.6777 GB, free: 91.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.796e-05/2.55, allocations: 13.75 kB / 0.6777 GB, free: 91.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03583/2.586, allocations: 12.97 MB / 0.6904 GB, free: 87.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.937e-05/2.586, allocations: 7.594 kB / 0.6904 GB, free: 87.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003468/2.59, allocations: 409.3 kB / 0.6908 GB, free: 87.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005228/2.595, allocations: 0.9402 MB / 0.6917 GB, free: 87.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006676/2.596, allocations: 45.94 kB / 0.6918 GB, free: 87.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/2.606, allocations: 5.566 MB / 0.6972 GB, free: 83.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001272/2.607, allocations: 1.464 MB / 0.6986 GB, free: 82.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01952/2.627, allocations: 8.347 MB / 0.7068 GB, free: 78.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009778/2.628, allocations: 326.5 kB / 0.7071 GB, free: 78.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008391/2.628, allocations: 46.14 kB / 0.7071 GB, free: 78.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003163/2.632, allocations: 199 kB / 0.7073 GB, free: 78.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008168/2.632, allocations: 142.4 kB / 0.7075 GB, free: 78.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002658/2.633, allocations: 73.81 kB / 0.7075 GB, free: 78.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004245/2.637, allocations: 1.702 MB / 0.7092 GB, free: 78.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/2.637, allocations: 2.469 kB / 0.7092 GB, free: 78.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00743/2.645, allocations: 1.101 MB / 0.7103 GB, free: 77.97 MB / 426.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.02076/2.665, allocations: 10.92 MB / 0.7209 GB, free: 68.53 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0175/2.683, allocations: 6.55 MB / 0.7273 GB, free: 62.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/2.683, allocations: 0 / 0.7273 GB, free: 62.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00636/2.689, allocations: 2.528 MB / 0.7298 GB, free: 60.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/2.693, allocations: 339.9 kB / 0.7301 GB, free: 60.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.484/3.177, allocations: 111.3 MB / 0.8388 GB, free: 92.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009463/3.186, allocations: 3.25 MB / 0.842 GB, free: 91.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007395/3.194, allocations: 1.708 MB / 0.8437 GB, free: 91.65 MB / 442.7 MB Notification: Performance of SimCode: time 1.253e-06/3.194, allocations: 1.641 kB / 0.8437 GB, free: 91.65 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.965/8.159, allocations: 129.1 MB / 0.9698 GB, free: 113.7 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat