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 1.834/1.834, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005898/0.0005901, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4614/0.462, allocations: 48.71 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.03164/0.4937, allocations: 21.15 MB / 352.4 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.5113, allocations: 5.94 MB / 358.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004602/0.516, allocations: 95.47 kB / 358.5 MB, free: 2.781 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004237/0.5202, allocations: 1.099 MB / 359.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01357/0.5339, allocations: 3.333 MB / 362.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002655/0.5366, allocations: 471.2 kB / 363.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005908/0.5425, allocations: 2.148 MB / 365.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004773/0.5474, allocations: 2.14 MB / 367.6 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002163/0.5496, allocations: 0.8447 MB / 368.5 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002818/0.5525, allocations: 1.199 MB / 369.7 MB, free: 7.934 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008354/0.5534, allocations: 124 kB / 369.8 MB, free: 7.812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.5567, allocations: 1.03 MB / 370.8 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002537/0.5593, allocations: 1.379 MB / 372.2 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001283/0.5606, allocations: 0.7297 MB / 372.9 MB, free: 4.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008436/0.5691, allocations: 4.714 MB / 377.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5691, allocations: 0 / 377.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.631e-06/0.5692, allocations: 3.984 kB / 377.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002023/0.5694, allocations: 4 kB / 377.7 MB, free: 15.93 MB / 314.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.01059/0.58, allocations: 3.451 MB / 381.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.5801, allocations: 16.03 kB / 381.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002099/0.5822, allocations: 0.6795 MB / 381.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03923/0.6214, allocations: 6.413 MB / 388.2 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008347/0.6298, allocations: 2.513 MB / 390.7 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003048/0.6302, allocations: 180.4 kB / 390.9 MB, free: 2.535 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002247/0.6325, allocations: 315.7 kB / 391.2 MB, free: 2.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02947/0.662, allocations: 10.8 MB / 402 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/0.6622, allocations: 31.72 kB / 402.1 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006364/0.6628, allocations: 111.8 kB / 402.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007056/0.6699, allocations: 2.459 MB / 404.6 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03301/0.7029, allocations: 10.22 MB / 414.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0816/0.7846, allocations: 35.71 MB / 450.6 MB, free: 5.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02014/0.8048, allocations: 5.588 MB / 456.1 MB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00274/0.8076, allocations: 1.876 MB / 458 MB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/0.8077, allocations: 52.56 kB / 458.1 MB, free: 13.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 5.841e-06/0.8077, allocations: 0 / 458.1 MB, free: 13.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=231): time 0.06371/0.8714, allocations: 15.55 MB / 473.6 MB, free: 13.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001858/0.8733, allocations: 1.527 MB / 475.1 MB, free: 12.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00656/0.8799, allocations: 2.998 MB / 478.1 MB, free: 9.008 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006352/0.8806, allocations: 49.7 kB / 478.2 MB, free: 8.953 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00297/0.8836, allocations: 2.676 MB / 480.9 MB, free: 6.238 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001628/0.8853, allocations: 0.848 MB / 481.7 MB, free: 5.379 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006642/0.886, allocations: 108 kB / 481.8 MB, free: 5.273 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005465/0.8866, allocations: 0.5462 MB / 482.4 MB, free: 4.719 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007407/0.894, allocations: 2.603 MB / 485 MB, free: 2.109 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2812/1.175, allocations: 5.586 MB / 490.6 MB, free: 125 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009444/1.185, allocations: 3.788 MB / 494.3 MB, free: 123.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001689/1.185, allocations: 30.5 kB / 494.4 MB, free: 123.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.1178/1.303, allocations: 18.88 MB / 0.5012 GB, free: 118.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/1.303, allocations: 50.78 kB / 0.5013 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08223/1.385, allocations: 12.01 MB / 0.513 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09115/1.476, allocations: 10.29 MB / 0.523 GB, free: 97.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007829/1.484, allocations: 1.295 MB / 0.5243 GB, free: 96.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04727/1.532, allocations: 17.28 MB / 0.5412 GB, free: 79.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006594/1.538, allocations: 436.5 kB / 0.5416 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.54, allocations: 318.3 kB / 0.5419 GB, free: 78.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * 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 (650): * Single equations (assignments): 639 * 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.005141/1.545, allocations: 2.013 MB / 0.5439 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006372/1.545, allocations: 275.4 kB / 0.5441 GB, free: 76.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/1.559, allocations: 5.102 MB / 0.5491 GB, free: 71.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01252/1.572, allocations: 4.397 MB / 0.5534 GB, free: 66.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/1.572, allocations: 0 / 0.5534 GB, free: 66.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-05/1.572, allocations: 13.61 kB / 0.5534 GB, free: 66.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03218/1.604, allocations: 12.93 MB / 0.566 GB, free: 53.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.033e-05/1.604, allocations: 8 kB / 0.5661 GB, free: 53.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003945/1.608, allocations: 456.2 kB / 0.5665 GB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005171/1.614, allocations: 0.9425 MB / 0.5674 GB, free: 52.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005595/1.614, allocations: 53.22 kB / 0.5675 GB, free: 52.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009716/1.624, allocations: 5.574 MB / 0.5729 GB, free: 46.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00118/1.625, allocations: 1.469 MB / 0.5743 GB, free: 44.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0181/1.643, allocations: 7.713 MB / 0.5819 GB, free: 37.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009103/1.644, allocations: 345.5 kB / 0.5822 GB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.645, allocations: 40 kB / 0.5822 GB, free: 36.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00308/1.648, allocations: 196.4 kB / 0.5824 GB, free: 36.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006451/1.649, allocations: 138.3 kB / 0.5826 GB, free: 36.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/1.649, allocations: 71.97 kB / 0.5826 GB, free: 36.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003634/1.653, allocations: 1.865 MB / 0.5844 GB, free: 34.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.653e-06/1.653, allocations: 0 / 0.5844 GB, free: 34.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006623/1.66, allocations: 1.129 MB / 0.5856 GB, free: 33.36 MB / 410.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.01876/1.679, allocations: 8.373 MB / 0.5937 GB, free: 24.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01579/1.694, allocations: 6.555 MB / 0.6001 GB, free: 18.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/1.694, allocations: 3.938 kB / 0.6001 GB, free: 18.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005754/1.7, allocations: 2.533 MB / 0.6026 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/1.703, allocations: 334.2 kB / 0.6029 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4195/2.122, allocations: 41.14 MB / 0.6431 GB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005273/2.127, allocations: 3.243 MB / 0.6463 GB, free: 135.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003961/2.131, allocations: 1.722 MB / 0.6479 GB, free: 133.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/2.132, allocations: 0 / 0.6479 GB, free: 133.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.589/6.721, allocations: 129.6 MB / 0.7745 GB, free: 10.29 MB / 426.7 MB