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 2.198/2.198, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006513/0.0006513, allocations: 16 kB / 282.7 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4061, allocations: 48.7 MB / 331.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1845/0.5906, allocations: 96.08 MB / 427.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.591, allocations: 75.97 kB / 427.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7877/1.379, allocations: 118.1 MB / 0.5328 GB, free: 64.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.379, allocations: 0 / 0.5328 GB, free: 64.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004411/1.379, allocations: 120 kB / 0.533 GB, free: 64.34 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.02835/1.408, allocations: 6.425 MB / 0.5392 GB, free: 57.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.095e-05/1.408, allocations: 12.03 kB / 0.5392 GB, free: 57.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004644/1.412, allocations: 1.021 MB / 0.5402 GB, free: 56.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05012/1.463, allocations: 6.989 MB / 0.5471 GB, free: 49.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02641/1.489, allocations: 7.814 MB / 0.5547 GB, free: 41.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005545/1.49, allocations: 439.5 kB / 0.5551 GB, free: 41.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003323/1.493, allocations: 0.5739 MB / 0.5557 GB, free: 40.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04255/1.535, allocations: 13.92 MB / 0.5693 GB, free: 25.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005779/1.536, allocations: 83.23 kB / 0.5694 GB, free: 25.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003396/1.54, allocations: 279.8 kB / 0.5696 GB, free: 25.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/1.543, allocations: 1.318 MB / 0.5709 GB, free: 24.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03647/1.579, allocations: 11.7 MB / 0.5823 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.458/2.037, allocations: 62.02 MB / 0.6429 GB, free: 53.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02499/2.062, allocations: 5.768 MB / 0.6485 GB, free: 52.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001068/2.063, allocations: 0.6883 MB / 0.6492 GB, free: 52.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.444e-05/2.063, allocations: 68.83 kB / 0.6493 GB, free: 52.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 8.596e-06/2.063, allocations: 0 / 0.6493 GB, free: 52.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.1632/2.227, allocations: 34.21 MB / 0.6827 GB, free: 47.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/2.227, allocations: 267.4 kB / 0.6829 GB, free: 47.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01205/2.239, allocations: 4.669 MB / 0.6875 GB, free: 46.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009259/2.24, allocations: 77.06 kB / 0.6876 GB, free: 46.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003718/2.244, allocations: 3.869 MB / 0.6913 GB, free: 43.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002093/2.246, allocations: 1.187 MB / 0.6925 GB, free: 42.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/2.247, allocations: 154.3 kB / 0.6927 GB, free: 42.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005814/2.247, allocations: 0.635 MB / 0.6933 GB, free: 41.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008697/2.256, allocations: 3.314 MB / 0.6965 GB, free: 40.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/2.268, allocations: 7.558 MB / 0.7039 GB, free: 33.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/2.28, allocations: 4.929 MB / 0.7087 GB, free: 32.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001765/2.28, allocations: 41.44 kB / 0.7087 GB, free: 32.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03716/2.317, allocations: 12.4 MB / 0.7209 GB, free: 23.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/2.317, allocations: 68 kB / 0.7209 GB, free: 23.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002446/2.318, allocations: 148 kB / 0.7211 GB, free: 23.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009272/2.327, allocations: 2.145 MB / 0.7232 GB, free: 21.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01158/2.339, allocations: 1.756 MB / 0.7249 GB, free: 20.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0296/2.368, allocations: 14.81 MB / 0.7393 GB, free: 7.254 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009986/2.378, allocations: 460.5 kB / 0.7398 GB, free: 6.871 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002192/2.38, allocations: 447.2 kB / 0.7402 GB, free: 6.449 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * 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.009534/2.39, allocations: 2.819 MB / 0.743 GB, free: 3.969 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/2.392, allocations: 0.4898 MB / 0.7434 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03072/2.423, allocations: 7.504 MB / 0.7508 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.53e-05/2.423, allocations: 35.83 kB / 0.7508 GB, free: 14.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-05/2.423, allocations: 15.95 kB / 0.7508 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.25e-05/2.423, allocations: 14.25 kB / 0.7508 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05527/2.478, allocations: 16.06 MB / 0.7665 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.676e-05/2.478, allocations: 5.453 kB / 0.7665 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005181/2.483, allocations: 0.5109 MB / 0.767 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009396/2.493, allocations: 1.881 MB / 0.7689 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009509/2.494, allocations: 68 kB / 0.7689 GB, free: 12.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03419/2.528, allocations: 13.31 MB / 0.7819 GB, free: 15.24 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/2.528, allocations: 8 kB / 0.7819 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03472/2.563, allocations: 12.18 MB / 0.7938 GB, free: 2.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004424/2.567, allocations: 1.057 MB / 0.7949 GB, free: 1.648 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002087/2.57, allocations: 63.98 kB / 0.7949 GB, free: 1.586 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005687/2.575, allocations: 211.7 kB / 0.7951 GB, free: 1.379 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001456/2.577, allocations: 205.6 kB / 0.7953 GB, free: 1.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005612/2.577, allocations: 90.95 kB / 0.7954 GB, free: 1.094 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01041/2.588, allocations: 3.32 MB / 0.7986 GB, free: 13.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.588, allocations: 0 / 0.7986 GB, free: 13.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01152/2.599, allocations: 1.49 MB / 0.8001 GB, free: 12.31 MB / 490.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 (259): * Single equations (assignments): 254 * 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.3742/2.974, allocations: 14.17 MB / 0.8139 GB, free: 143.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02235/2.996, allocations: 8.274 MB / 0.822 GB, free: 143.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.494e-05/2.996, allocations: 8.25 kB / 0.822 GB, free: 143.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0144/3.01, allocations: 3.93 MB / 0.8259 GB, free: 143.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006093/3.017, allocations: 0.6228 MB / 0.8265 GB, free: 143.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2058/3.222, allocations: 157 MB / 0.9797 GB, free: 10.88 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0105/3.233, allocations: 4.513 MB / 0.9841 GB, free: 9.328 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007469/3.241, allocations: 2.847 MB / 0.9869 GB, free: 7.051 MB / 490.7 MB Notification: Performance of SimCode: time 1.363e-06/3.241, allocations: 0 / 0.9869 GB, free: 7.051 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.551/8.791, allocations: 166.9 MB / 1.15 GB, free: 46.09 MB / 490.7 MB