Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum.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.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.288/2.288, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.877e-05/1.88e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3375, allocations: 54.84 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1703/0.5079, allocations: 94.64 MB / 452.8 MB, free: 64 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5083, allocations: 68.02 kB / 452.8 MB, free: 15.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9146/1.423, allocations: 168.8 MB / 0.6071 GB, free: 6.793 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.423, allocations: 0 / 0.6071 GB, free: 6.793 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008571/1.424, allocations: 183.9 kB / 0.6073 GB, free: 6.613 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.06725/1.491, allocations: 10.03 MB / 0.6171 GB, free: 12.51 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/1.491, allocations: 8.031 kB / 0.6171 GB, free: 12.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4848/1.976, allocations: 21.92 MB / 0.6385 GB, free: 63.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0799/2.056, allocations: 19.85 MB / 0.6579 GB, free: 62.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004684/2.056, allocations: 238.3 kB / 0.6581 GB, free: 62.69 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003809/2.06, allocations: 479.1 kB / 0.6585 GB, free: 62.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02573/2.086, allocations: 10.38 MB / 0.6687 GB, free: 62.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03914/2.125, allocations: 16.21 MB / 0.6845 GB, free: 57.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006319/2.126, allocations: 135.7 kB / 0.6846 GB, free: 57.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003146/2.129, allocations: 52.94 kB / 0.6847 GB, free: 57.88 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003907/2.133, allocations: 1.641 MB / 0.6863 GB, free: 57.87 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1295/2.262, allocations: 87.68 MB / 0.7719 GB, free: 8.102 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01334/2.276, allocations: 6.059 MB / 0.7778 GB, free: 2.395 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02051/2.296, allocations: 5.368 MB / 0.7831 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00218/2.299, allocations: 1.005 MB / 0.7841 GB, free: 14.72 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.922e-05/2.299, allocations: 70.83 kB / 0.7841 GB, free: 14.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=322): time 7.204e-06/2.299, allocations: 0 / 0.7841 GB, free: 14.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=396): time 0.5791/2.878, allocations: 55.14 MB / 0.838 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/2.878, allocations: 477 kB / 0.8384 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01777/2.896, allocations: 6.757 MB / 0.845 GB, free: 99.13 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001407/2.897, allocations: 30.3 kB / 0.8451 GB, free: 99.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005777/2.903, allocations: 5.772 MB / 0.8507 GB, free: 96.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003112/2.906, allocations: 1.501 MB / 0.8522 GB, free: 95.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001965/2.908, allocations: 3.75 kB / 0.8522 GB, free: 95.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001019/2.909, allocations: 0.7921 MB / 0.8529 GB, free: 95.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01279/2.922, allocations: 5.499 MB / 0.8583 GB, free: 95.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01725/2.94, allocations: 11.85 MB / 0.8699 GB, free: 86.84 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0173/2.957, allocations: 7.848 MB / 0.8776 GB, free: 86.79 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003231/2.957, allocations: 65.91 kB / 0.8776 GB, free: 86.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1475) (initialization): time 0.1448/3.102, allocations: 34.49 MB / 0.9113 GB, free: 83.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001936/3.102, allocations: 101.3 kB / 0.9114 GB, free: 83.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1051/3.207, allocations: 23.84 MB / 0.9347 GB, free: 75.15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1026/3.31, allocations: 18.47 MB / 0.9527 GB, free: 59.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01694/3.327, allocations: 2.773 MB / 0.9554 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07855/3.406, allocations: 36.42 MB / 0.991 GB, free: 19.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01885/3.425, allocations: 0.9472 MB / 0.9919 GB, free: 18.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003283/3.428, allocations: 0.6841 MB / 0.9926 GB, free: 17.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1020 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1327): * Single equations (assignments): 1303 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,54.7%) 13,(8,54.7%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004402/3.432, allocations: 0.6834 MB / 0.9932 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4164/3.849, allocations: 13.26 MB / 1.006 GB, free: 88.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003269/3.852, allocations: 0.7573 MB / 1.007 GB, free: 88.11 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04921/3.901, allocations: 13.44 MB / 1.02 GB, free: 87.74 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04321/3.945, allocations: 12.03 MB / 1.032 GB, free: 87.45 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.366e-05/3.945, allocations: 16.28 kB / 1.032 GB, free: 87.45 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001184/3.945, allocations: 21.44 kB / 1.032 GB, free: 87.45 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08649/4.031, allocations: 28.03 MB / 1.059 GB, free: 86.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-05/4.031, allocations: 0 / 1.059 GB, free: 86.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00848/4.04, allocations: 0.8956 MB / 1.06 GB, free: 86.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03156/4.072, allocations: 5.478 MB / 1.065 GB, free: 85.33 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001187/4.073, allocations: 50.23 kB / 1.065 GB, free: 85.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05467/4.127, allocations: 26.84 MB / 1.092 GB, free: 71.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003685/4.131, allocations: 4.493 MB / 1.096 GB, free: 67.67 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05886/4.19, allocations: 20.12 MB / 1.116 GB, free: 59.56 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002895/4.193, allocations: 0.7894 MB / 1.117 GB, free: 59.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002915/4.196, allocations: 26.56 kB / 1.117 GB, free: 59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01005/4.206, allocations: 456.1 kB / 1.117 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002058/4.208, allocations: 300.9 kB / 1.117 GB, free: 58.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006365/4.209, allocations: 122.5 kB / 1.117 GB, free: 58.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01184/4.221, allocations: 4.674 MB / 1.122 GB, free: 54.49 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.052e-06/4.221, allocations: 0 / 1.122 GB, free: 54.49 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01702/4.238, allocations: 2.629 MB / 1.125 GB, free: 51.87 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET11333534090.x[3],$STATESET11333534090.x[2],$STATESET11333534090.x[1],$STATESET11333534089.x[6],$STATESET11333534089.x[5],$STATESET11333534089.x[4],$STATESET11333534089.x[3],$STATESET11333534089.x[2],$STATESET11333534089.x[1],$STATESET11333534088.x[3],$STATESET11333534088.x[2],$STATESET11333534088.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (295): * Single equations (assignments): 280 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {8,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,54.7%) 13,(8,59.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06014/4.298, allocations: 21.12 MB / 1.145 GB, free: 34.13 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1298:5-1300:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.0381/4.336, allocations: 15.43 MB / 1.16 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/4.336, allocations: 3.562 kB / 1.16 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02148/4.358, allocations: 7.263 MB / 1.167 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01037/4.368, allocations: 1.068 MB / 1.168 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4313/4.799, allocations: 23.96 MB / 1.192 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/4.815, allocations: 6.325 MB / 1.198 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01088/4.826, allocations: 4.443 MB / 1.202 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/4.826, allocations: 0 / 1.202 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.145/13.97, allocations: 0.6164 GB / 1.819 GB, free: 126.8 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat