Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 1.844/1.844, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004352, allocations: 16 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2812, allocations: 48.7 MB / 331.2 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.08494/0.3661, allocations: 61.08 MB / 392.3 MB, free: 1.305 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03599/0.4022, allocations: 14.42 MB / 406.7 MB, free: 2.836 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01244/0.4147, allocations: 315.2 kB / 407 MB, free: 2.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009837/0.4245, allocations: 3.107 MB / 410.1 MB, free: 15.4 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02951/0.4541, allocations: 8.805 MB / 418.9 MB, free: 6.578 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00467/0.4588, allocations: 0.9283 MB / 419.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.03949/0.4983, allocations: 18.4 MB / 438.3 MB, free: 3.23 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01187/0.5102, allocations: 6.284 MB / 444.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003613/0.5139, allocations: 1.514 MB / 446 MB, free: 11.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004141/0.5181, allocations: 2.095 MB / 448.1 MB, free: 9.262 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/0.5192, allocations: 212 kB / 448.4 MB, free: 9.055 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002768/0.522, allocations: 1.026 MB / 449.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003429/0.5254, allocations: 2.287 MB / 451.7 MB, free: 5.734 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001839/0.5273, allocations: 1.193 MB / 452.9 MB, free: 4.531 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0173/0.5446, allocations: 8.175 MB / 461 MB, free: 12.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.29e-06/0.5447, allocations: 0 / 461 MB, free: 12.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.68e-06/0.5447, allocations: 0 / 461 MB, free: 12.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002078/0.5449, allocations: 0 / 461 MB, free: 12.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.01981/0.5647, allocations: 6.506 MB / 467.5 MB, free: 5.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5648, allocations: 12.03 kB / 467.6 MB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4041/0.969, allocations: 14.75 MB / 482.3 MB, free: 116.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/0.9815, allocations: 4.996 MB / 487.3 MB, free: 113.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003013/0.9818, allocations: 332.7 kB / 487.6 MB, free: 113.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001413/0.9832, allocations: 456.2 kB / 488.1 MB, free: 113.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02757/1.011, allocations: 13.73 MB / 0.49 GB, free: 101.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002235/1.011, allocations: 67.39 kB / 0.4901 GB, free: 101.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000833/1.012, allocations: 210.4 kB / 0.4903 GB, free: 101.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004076/1.016, allocations: 2.42 MB / 0.4927 GB, free: 98.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02598/1.042, allocations: 11.72 MB / 0.5041 GB, free: 87.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06783/1.11, allocations: 53.73 MB / 0.5566 GB, free: 32.19 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01707/1.127, allocations: 5.822 MB / 0.5623 GB, free: 26.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006917/1.128, allocations: 0.6879 MB / 0.5629 GB, free: 25.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/1.128, allocations: 60.56 kB / 0.563 GB, free: 25.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=254): time 7.239e-06/1.128, allocations: 7.844 kB / 0.563 GB, free: 25.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=324): time 0.1275/1.255, allocations: 36.75 MB / 0.5989 GB, free: 4.418 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000199/1.256, allocations: 269.3 kB / 0.5992 GB, free: 4.098 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/1.267, allocations: 5.644 MB / 0.6047 GB, free: 14.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007313/1.268, allocations: 81.69 kB / 0.6047 GB, free: 14.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004144/1.272, allocations: 3.85 MB / 0.6085 GB, free: 10.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00201/1.274, allocations: 1.202 MB / 0.6097 GB, free: 9.344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007166/1.275, allocations: 152 kB / 0.6098 GB, free: 9.195 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006467/1.276, allocations: 0.6372 MB / 0.6104 GB, free: 8.551 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00817/1.284, allocations: 3.435 MB / 0.6138 GB, free: 5.109 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2444/1.528, allocations: 7.675 MB / 0.6213 GB, free: 128.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/1.539, allocations: 5.042 MB / 0.6262 GB, free: 126.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001854/1.539, allocations: 42.41 kB / 0.6263 GB, free: 126.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.0302/1.569, allocations: 12.68 MB / 0.6386 GB, free: 122.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/1.569, allocations: 70.2 kB / 0.6387 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001802/1.569, allocations: 148 kB / 0.6388 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007786/1.577, allocations: 2.268 MB / 0.6411 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00801/1.585, allocations: 1.757 MB / 0.6428 GB, free: 121.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02585/1.611, allocations: 15.75 MB / 0.6582 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007966/1.619, allocations: 456 kB / 0.6586 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001411/1.621, allocations: 455.3 kB / 0.659 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.005871/1.627, allocations: 2.823 MB / 0.6618 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.628, allocations: 0.4899 MB / 0.6623 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0158/1.643, allocations: 7.41 MB / 0.6695 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.752e-05/1.644, allocations: 36 kB / 0.6695 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.878e-05/1.644, allocations: 8 kB / 0.6695 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.22e-05/1.644, allocations: 17.16 kB / 0.6696 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03478/1.678, allocations: 16.66 MB / 0.6858 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.728e-05/1.679, allocations: 8 kB / 0.6858 GB, free: 86.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/1.682, allocations: 0.5188 MB / 0.6863 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006253/1.688, allocations: 2.001 MB / 0.6883 GB, free: 83.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000594/1.689, allocations: 64.53 kB / 0.6884 GB, free: 83.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02219/1.711, allocations: 14.24 MB / 0.7023 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.5e-06/1.711, allocations: 8 kB / 0.7023 GB, free: 69.22 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02146/1.732, allocations: 11.81 MB / 0.7138 GB, free: 57.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002993/1.735, allocations: 1.1 MB / 0.7149 GB, free: 56.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.737, allocations: 63.98 kB / 0.7149 GB, free: 56.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003241/1.74, allocations: 232.4 kB / 0.7152 GB, free: 55.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006437/1.74, allocations: 201.6 kB / 0.7154 GB, free: 55.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003435/1.741, allocations: 93.02 kB / 0.7154 GB, free: 55.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005925/1.747, allocations: 3.637 MB / 0.719 GB, free: 51.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.306e-06/1.747, allocations: 0 / 0.719 GB, free: 51.94 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007735/1.755, allocations: 1.538 MB / 0.7205 GB, free: 50.41 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.0007195/1.755, allocations: 222.4 kB / 0.7207 GB, free: 50.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01495/1.77, allocations: 8.555 MB / 0.7291 GB, free: 41.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.474e-06/1.77, allocations: 0 / 0.7291 GB, free: 41.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008927/1.779, allocations: 4.101 MB / 0.7331 GB, free: 37.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003716/1.783, allocations: 0.6211 MB / 0.7337 GB, free: 36.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02954/1.813, allocations: 17.74 MB / 0.751 GB, free: 19.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007489/1.82, allocations: 4.533 MB / 0.7554 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002131/1.822, allocations: 419.3 kB / 0.7558 GB, free: 14.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/1.822, allocations: 0 / 0.7558 GB, free: 14.05 MB / 426.7 MB Notification: Performance of Templates: time 0.4273/2.25, allocations: 132.6 MB / 0.8854 GB, free: 48.91 MB / 442.7 MB