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.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.118/2.118, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004134/0.0004134, allocations: 19.98 kB / 314.4 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3406, allocations: 54.85 MB / 369.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03546/0.3761, allocations: 24.38 MB / 393.6 MB, free: 4.348 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.3927, allocations: 6.517 MB / 400.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003751/0.3965, allocations: 111.8 kB / 400.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003771/0.4003, allocations: 1.272 MB / 401.5 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.4133, allocations: 3.783 MB / 405.3 MB, free: 8.629 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002004/0.4154, allocations: 411.3 kB / 405.7 MB, free: 8.227 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004686/0.4201, allocations: 2.223 MB / 407.9 MB, free: 6 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003734/0.4238, allocations: 2.194 MB / 410.1 MB, free: 3.754 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001384/0.4253, allocations: 0.8914 MB / 411 MB, free: 2.859 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001978/0.4273, allocations: 1.246 MB / 412.3 MB, free: 1.609 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004795/0.4277, allocations: 132 kB / 412.4 MB, free: 1.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002228/0.43, allocations: 0.8894 MB / 413.3 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001758/0.4318, allocations: 1.457 MB / 414.8 MB, free: 15.13 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009013/0.4327, allocations: 0.7686 MB / 415.5 MB, free: 14.35 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007092/0.4398, allocations: 4.919 MB / 420.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4398, allocations: 0 / 420.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4399, allocations: 0 / 420.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.981e-05/0.44, allocations: 3.938 kB / 420.4 MB, free: 9.418 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.009264/0.4492, allocations: 3.668 MB / 424.1 MB, free: 5.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4493, allocations: 12.03 kB / 424.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001376/0.4507, allocations: 0.7205 MB / 424.8 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02364/0.4743, allocations: 3.855 MB / 428.7 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00662/0.481, allocations: 2.419 MB / 431.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.4812, allocations: 188.7 kB / 431.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.4827, allocations: 343.5 kB / 431.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0236/0.5063, allocations: 10.84 MB / 442.5 MB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000126/0.5065, allocations: 27.8 kB / 442.5 MB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006105/0.5071, allocations: 123.8 kB / 442.6 MB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006808/0.5139, allocations: 2.561 MB / 445.2 MB, free: 48 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02847/0.5424, allocations: 10.32 MB / 455.5 MB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07241/0.6149, allocations: 35.88 MB / 491.4 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01274/0.6277, allocations: 4.423 MB / 495.8 MB, free: 12.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001749/0.6295, allocations: 1.319 MB / 497.1 MB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.6295, allocations: 52.56 kB / 497.2 MB, free: 10.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 6.161e-06/0.6295, allocations: 4 kB / 497.2 MB, free: 10.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.3606/0.9901, allocations: 17.63 MB / 0.5027 GB, free: 118.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001266/0.9915, allocations: 1.539 MB / 0.5043 GB, free: 116.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004742/0.9962, allocations: 2.97 MB / 0.5072 GB, free: 115.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004959/0.9968, allocations: 66.28 kB / 0.5072 GB, free: 115.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/0.9984, allocations: 2.721 MB / 0.5099 GB, free: 113.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001152/0.9996, allocations: 0.9538 MB / 0.5108 GB, free: 113 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/1, allocations: 111 kB / 0.5109 GB, free: 112.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003059/1, allocations: 0.5546 MB / 0.5114 GB, free: 112.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00508/1.005, allocations: 2.461 MB / 0.5139 GB, free: 111.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006382/1.012, allocations: 5.485 MB / 0.5192 GB, free: 106.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007219/1.019, allocations: 3.668 MB / 0.5228 GB, free: 104.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.326e-05/1.019, allocations: 32 kB / 0.5228 GB, free: 104.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.03347/1.053, allocations: 9.729 MB / 0.5323 GB, free: 94.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.065e-05/1.053, allocations: 51.98 kB / 0.5324 GB, free: 94.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02303/1.076, allocations: 4.904 MB / 0.5372 GB, free: 89.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02098/1.097, allocations: 2.395 MB / 0.5395 GB, free: 87.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007292/1.104, allocations: 1.287 MB / 0.5408 GB, free: 86.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.117, allocations: 6.15 MB / 0.5468 GB, free: 79.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00597/1.123, allocations: 409 kB / 0.5472 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000599/1.124, allocations: 324.9 kB / 0.5475 GB, free: 79.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * 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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (689): * Single equations (assignments): 677 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004127/1.128, allocations: 2.106 MB / 0.5495 GB, free: 76.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/1.128, allocations: 280.3 kB / 0.5498 GB, free: 76.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01578/1.144, allocations: 5.434 MB / 0.5551 GB, free: 71.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01428/1.159, allocations: 4.684 MB / 0.5597 GB, free: 66.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/1.159, allocations: 2.625 kB / 0.5597 GB, free: 66.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-05/1.159, allocations: 15.95 kB / 0.5597 GB, free: 66.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03556/1.194, allocations: 14.73 MB / 0.5741 GB, free: 51.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/1.194, allocations: 8 kB / 0.5741 GB, free: 51.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/1.198, allocations: 427.3 kB / 0.5745 GB, free: 51.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007829/1.205, allocations: 1.244 MB / 0.5757 GB, free: 49.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/1.206, allocations: 63.92 kB / 0.5758 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006426/1.212, allocations: 4.527 MB / 0.5802 GB, free: 44.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001061/1.213, allocations: 1.483 MB / 0.5816 GB, free: 43.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/1.233, allocations: 8.143 MB / 0.5896 GB, free: 34.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008209/1.234, allocations: 349.4 kB / 0.5899 GB, free: 34.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006879/1.235, allocations: 53.23 kB / 0.59 GB, free: 34.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00265/1.237, allocations: 199.7 kB / 0.5902 GB, free: 34.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/1.238, allocations: 171 kB / 0.5903 GB, free: 34.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/1.238, allocations: 75.97 kB / 0.5904 GB, free: 34.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003126/1.241, allocations: 1.857 MB / 0.5922 GB, free: 32.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.241, allocations: 0 / 0.5922 GB, free: 32.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005324/1.246, allocations: 1.091 MB / 0.5933 GB, free: 31.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01967/1.266, allocations: 8.712 MB / 0.6018 GB, free: 22.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01447/1.281, allocations: 6.509 MB / 0.6081 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.281, allocations: 4 kB / 0.6081 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007271/1.288, allocations: 2.892 MB / 0.611 GB, free: 12.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/1.29, allocations: 357.7 kB / 0.6113 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08725/1.378, allocations: 35.37 MB / 0.6458 GB, free: 6.266 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005448/1.383, allocations: 3.391 MB / 0.6492 GB, free: 2.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004355/1.387, allocations: 1.847 MB / 0.651 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/1.387, allocations: 7.938 kB / 0.651 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.232/5.62, allocations: 150.1 MB / 0.7976 GB, free: 67.19 MB / 490.7 MB