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.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.886/1.886, allocations: 209.2 MB / 224.8 MB, free: 0.6328 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004302, allocations: 15.94 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3418, allocations: 48.7 MB / 331.3 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.09776/0.4396, allocations: 61.08 MB / 392.4 MB, free: 1.297 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04042/0.4801, allocations: 14.43 MB / 406.8 MB, free: 2.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01323/0.4934, allocations: 307.2 kB / 407.1 MB, free: 2.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01122/0.5046, allocations: 3.118 MB / 410.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03379/0.5385, allocations: 8.798 MB / 419 MB, free: 6.566 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005794/0.5443, allocations: 0.9244 MB / 419.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.05367/0.598, allocations: 18.4 MB / 438.3 MB, free: 3.223 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01321/0.6113, allocations: 6.288 MB / 444.6 MB, free: 12.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003803/0.6151, allocations: 1.514 MB / 446.1 MB, free: 11.35 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004623/0.6198, allocations: 2.103 MB / 448.2 MB, free: 9.242 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001228/0.6211, allocations: 208 kB / 448.4 MB, free: 9.039 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003368/0.6245, allocations: 1.022 MB / 449.5 MB, free: 8.016 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003761/0.6282, allocations: 2.287 MB / 451.8 MB, free: 5.723 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.6303, allocations: 1.193 MB / 452.9 MB, free: 4.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.6434, allocations: 8.175 MB / 461.1 MB, free: 12.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6435, allocations: 0 / 461.1 MB, free: 12.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.6435, allocations: 4 kB / 461.1 MB, free: 12.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002973/0.6438, allocations: 0 / 461.1 MB, free: 12.32 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.02818/0.672, allocations: 6.505 MB / 467.6 MB, free: 5.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.6721, allocations: 8.031 kB / 467.6 MB, free: 5.73 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003141/0.6752, allocations: 0.9589 MB / 468.6 MB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6147/1.29, allocations: 14.76 MB / 483.4 MB, free: 115.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01546/1.305, allocations: 4.987 MB / 488.3 MB, free: 112.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004786/1.306, allocations: 335.1 kB / 488.7 MB, free: 112.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002164/1.308, allocations: 460.4 kB / 489.1 MB, free: 112.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03275/1.341, allocations: 13.72 MB / 0.4911 GB, free: 100.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002803/1.341, allocations: 75.36 kB / 0.4911 GB, free: 100.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001343/1.343, allocations: 211.7 kB / 0.4913 GB, free: 99.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005203/1.348, allocations: 2.405 MB / 0.4937 GB, free: 97.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03276/1.381, allocations: 11.73 MB / 0.5051 GB, free: 85.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08586/1.467, allocations: 53.73 MB / 0.5576 GB, free: 30.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02282/1.489, allocations: 5.824 MB / 0.5633 GB, free: 24.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009686/1.49, allocations: 0.6943 MB / 0.564 GB, free: 24.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/1.491, allocations: 56.56 kB / 0.564 GB, free: 24.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=254): time 6.212e-06/1.491, allocations: 0 / 0.564 GB, free: 24.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=324): time 0.1726/1.663, allocations: 36.76 MB / 0.5999 GB, free: 3.098 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/1.663, allocations: 261.4 kB / 0.6002 GB, free: 2.785 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/1.676, allocations: 5.648 MB / 0.6057 GB, free: 13.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009354/1.677, allocations: 81.64 kB / 0.6058 GB, free: 13.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0041/1.681, allocations: 3.854 MB / 0.6095 GB, free: 9.215 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002208/1.683, allocations: 1.198 MB / 0.6107 GB, free: 8.023 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009048/1.684, allocations: 152 kB / 0.6108 GB, free: 7.875 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005777/1.684, allocations: 0.6372 MB / 0.6115 GB, free: 7.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009515/1.694, allocations: 3.435 MB / 0.6148 GB, free: 3.789 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2931/1.987, allocations: 7.667 MB / 0.6223 GB, free: 128.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/2, allocations: 5.046 MB / 0.6272 GB, free: 126.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002364/2, allocations: 41.03 kB / 0.6273 GB, free: 126.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03849/2.039, allocations: 12.68 MB / 0.6397 GB, free: 122.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/2.039, allocations: 72.95 kB / 0.6397 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002052/2.039, allocations: 149.1 kB / 0.6399 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009738/2.049, allocations: 2.268 MB / 0.6421 GB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01111/2.06, allocations: 1.762 MB / 0.6438 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03088/2.091, allocations: 15.75 MB / 0.6592 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008969/2.1, allocations: 463.9 kB / 0.6596 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/2.102, allocations: 450.4 kB / 0.6601 GB, free: 113.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 669 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007091/2.109, allocations: 2.814 MB / 0.6628 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/2.11, allocations: 0.4884 MB / 0.6633 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02074/2.131, allocations: 7.42 MB / 0.6705 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.977e-05/2.131, allocations: 32 kB / 0.6706 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/2.131, allocations: 12 kB / 0.6706 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.846e-05/2.131, allocations: 11.95 kB / 0.6706 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04382/2.175, allocations: 16.67 MB / 0.6869 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.242e-05/2.175, allocations: 8 kB / 0.6869 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00496/2.18, allocations: 0.5188 MB / 0.6874 GB, free: 85.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008786/2.189, allocations: 2.003 MB / 0.6893 GB, free: 83.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000723/2.19, allocations: 64.09 kB / 0.6894 GB, free: 83.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02969/2.22, allocations: 14.25 MB / 0.7033 GB, free: 69.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/2.22, allocations: 11.94 kB / 0.7033 GB, free: 69.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02815/2.248, allocations: 11.8 MB / 0.7148 GB, free: 57.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003667/2.252, allocations: 1.1 MB / 0.7159 GB, free: 56.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001549/2.253, allocations: 63.98 kB / 0.716 GB, free: 55.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004736/2.258, allocations: 227.7 kB / 0.7162 GB, free: 55.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008647/2.259, allocations: 206.7 kB / 0.7164 GB, free: 55.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003557/2.259, allocations: 87.98 kB / 0.7165 GB, free: 55.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007115/2.266, allocations: 3.637 MB / 0.72 GB, free: 51.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.266, allocations: 0 / 0.72 GB, free: 51.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008773/2.275, allocations: 1.53 MB / 0.7215 GB, free: 50.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02928/2.304, allocations: 12.52 MB / 0.7338 GB, free: 37.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01932/2.324, allocations: 8.542 MB / 0.7421 GB, free: 29.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/2.324, allocations: 4 kB / 0.7421 GB, free: 29.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01285/2.337, allocations: 4.102 MB / 0.7461 GB, free: 24.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005226/2.342, allocations: 0.6215 MB / 0.7467 GB, free: 24.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4243/2.766, allocations: 58.47 MB / 0.8038 GB, free: 131.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008431/2.775, allocations: 4.526 MB / 0.8082 GB, free: 130.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006538/2.781, allocations: 2.868 MB / 0.811 GB, free: 127.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.283e-06/2.781, allocations: 0 / 0.811 GB, free: 127.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.103/7.884, allocations: 168.7 MB / 0.9758 GB, free: 119.5 MB / 442.7 MB