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.246/2.246, allocations: 234.9 MB / 250.4 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004226, allocations: 8 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3352, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.03203/0.3673, allocations: 21.16 MB / 390.4 MB, free: 5.488 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.383, allocations: 5.965 MB / 396.4 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003622/0.3867, allocations: 99.75 kB / 396.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003691/0.3904, allocations: 1.101 MB / 397.6 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01205/0.4025, allocations: 3.32 MB / 400.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002257/0.4049, allocations: 467.2 kB / 401.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00502/0.4099, allocations: 2.155 MB / 403.5 MB, free: 8.359 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004084/0.414, allocations: 2.147 MB / 405.7 MB, free: 6.16 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.4157, allocations: 0.8485 MB / 406.5 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002165/0.4179, allocations: 1.184 MB / 407.7 MB, free: 4.121 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006208/0.4185, allocations: 124 kB / 407.8 MB, free: 4 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002753/0.4213, allocations: 1.041 MB / 408.9 MB, free: 2.957 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002104/0.4234, allocations: 1.375 MB / 410.2 MB, free: 1.578 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.4245, allocations: 0.7258 MB / 411 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007677/0.4322, allocations: 4.72 MB / 415.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4323, allocations: 0 / 415.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4323, allocations: 0 / 415.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001773/0.4325, allocations: 4 kB / 415.7 MB, free: 12.11 MB / 346.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.009944/0.4424, allocations: 3.448 MB / 419.1 MB, free: 8.594 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4425, allocations: 12.03 kB / 419.2 MB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00188/0.4444, allocations: 0.6873 MB / 419.8 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03943/0.4838, allocations: 6.406 MB / 426.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00807/0.4919, allocations: 2.509 MB / 428.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.4922, allocations: 184.4 kB / 428.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001899/0.4941, allocations: 307.6 kB / 429.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02734/0.5215, allocations: 10.8 MB / 440 MB, free: 3.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.5216, allocations: 27.72 kB / 440.1 MB, free: 3.133 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006453/0.5223, allocations: 119.7 kB / 440.2 MB, free: 3.016 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00685/0.5291, allocations: 2.459 MB / 442.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03133/0.5605, allocations: 10.22 MB / 452.9 MB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3799/0.9405, allocations: 35.7 MB / 488.6 MB, free: 69 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01779/0.9583, allocations: 5.586 MB / 494.1 MB, free: 67.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002061/0.9604, allocations: 1.878 MB / 496 MB, free: 65.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.9605, allocations: 55.53 kB / 496.1 MB, free: 65.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 6.261e-06/0.9605, allocations: 0 / 496.1 MB, free: 65.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=231): time 0.05448/1.015, allocations: 15.53 MB / 0.4996 GB, free: 59.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001253/1.016, allocations: 1.531 MB / 0.5011 GB, free: 58.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004802/1.021, allocations: 2.997 MB / 0.504 GB, free: 55.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005658/1.022, allocations: 55.5 kB / 0.5041 GB, free: 54.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/1.023, allocations: 2.667 MB / 0.5067 GB, free: 52.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001092/1.025, allocations: 0.8584 MB / 0.5075 GB, free: 51.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004428/1.025, allocations: 101.2 kB / 0.5076 GB, free: 51.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003055/1.025, allocations: 0.5462 MB / 0.5082 GB, free: 50.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005395/1.031, allocations: 2.607 MB / 0.5107 GB, free: 48.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006968/1.038, allocations: 5.586 MB / 0.5162 GB, free: 41.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007627/1.045, allocations: 3.792 MB / 0.5199 GB, free: 37.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-05/1.045, allocations: 28 kB / 0.5199 GB, free: 37.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.122/1.167, allocations: 18.88 MB / 0.5383 GB, free: 18.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/1.168, allocations: 48 kB / 0.5384 GB, free: 18.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09605/1.264, allocations: 12.01 MB / 0.5501 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09312/1.357, allocations: 10.3 MB / 0.5602 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008494/1.365, allocations: 1.294 MB / 0.5614 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05377/1.419, allocations: 17.28 MB / 0.5783 GB, free: 9.219 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006427/1.426, allocations: 440.6 kB / 0.5787 GB, free: 8.789 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008683/1.427, allocations: 321.2 kB / 0.579 GB, free: 8.477 MB / 426.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.004877/1.431, allocations: 2.018 MB / 0.581 GB, free: 6.445 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006892/1.432, allocations: 268.4 kB / 0.5813 GB, free: 6.176 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01492/1.447, allocations: 5.1 MB / 0.5862 GB, free: 1.043 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01327/1.46, allocations: 4.396 MB / 0.5905 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/1.46, allocations: 0 / 0.5905 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.712e-05/1.461, allocations: 7.969 kB / 0.5905 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03567/1.496, allocations: 12.92 MB / 0.6032 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/1.496, allocations: 8 kB / 0.6032 GB, free: 15.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003979/1.5, allocations: 459.2 kB / 0.6036 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005391/1.506, allocations: 0.9391 MB / 0.6045 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002826/1.506, allocations: 48.7 kB / 0.6046 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/1.517, allocations: 5.582 MB / 0.61 GB, free: 8.266 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001476/1.519, allocations: 1.475 MB / 0.6115 GB, free: 6.645 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02068/1.54, allocations: 7.72 MB / 0.619 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009573/1.541, allocations: 337.6 kB / 0.6193 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008933/1.542, allocations: 44.48 kB / 0.6194 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002857/1.544, allocations: 204.6 kB / 0.6196 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005197/1.545, allocations: 138.2 kB / 0.6197 GB, free: 14.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000269/1.545, allocations: 75.98 kB / 0.6198 GB, free: 14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004132/1.549, allocations: 1.872 MB / 0.6216 GB, free: 12.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.549, allocations: 4 kB / 0.6216 GB, free: 12.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006464/1.556, allocations: 1.11 MB / 0.6227 GB, free: 11.01 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.02129/1.577, allocations: 8.378 MB / 0.6309 GB, free: 2.504 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01933/1.597, allocations: 6.55 MB / 0.6373 GB, free: 11.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/1.597, allocations: 0 / 0.6373 GB, free: 11.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01052/1.607, allocations: 2.532 MB / 0.6397 GB, free: 9.359 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/1.611, allocations: 336.6 kB / 0.6401 GB, free: 9.031 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4461/2.057, allocations: 41.13 MB / 0.6802 GB, free: 156.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005312/2.062, allocations: 3.245 MB / 0.6834 GB, free: 153.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004061/2.066, allocations: 1.713 MB / 0.6851 GB, free: 151.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.222e-06/2.066, allocations: 0 / 0.6851 GB, free: 151.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.969/6.036, allocations: 129.6 MB / 0.8116 GB, free: 21.74 MB / 490.7 MB