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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.932/1.932, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.987e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2585, allocations: 48.7 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.3995, allocations: 95.3 MB / 415.3 MB, free: 1.082 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.3998, allocations: 79.94 kB / 415.4 MB, free: 1.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6147/1.015, allocations: 115.6 MB / 0.5186 GB, free: 42.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.015, allocations: 0 / 0.5186 GB, free: 42.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000335/1.015, allocations: 115.9 kB / 0.5187 GB, free: 42 MB / 378.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.01806/1.033, allocations: 5.929 MB / 0.5245 GB, free: 36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/1.033, allocations: 12.03 kB / 0.5245 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03395/1.067, allocations: 6.997 MB / 0.5313 GB, free: 28.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02074/1.088, allocations: 7.782 MB / 0.5389 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/1.088, allocations: 184 kB / 0.5391 GB, free: 20.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002157/1.09, allocations: 351.8 kB / 0.5394 GB, free: 20.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01631/1.107, allocations: 8.196 MB / 0.5474 GB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/1.132, allocations: 12.41 MB / 0.5595 GB, free: 14.81 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003583/1.132, allocations: 87.19 kB / 0.5596 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001538/1.134, allocations: 36 kB / 0.5597 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002478/1.136, allocations: 1.318 MB / 0.561 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3662/1.503, allocations: 59.36 MB / 0.6189 GB, free: 45.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006976/1.51, allocations: 4.889 MB / 0.6237 GB, free: 44.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004605/1.514, allocations: 3.22 MB / 0.6268 GB, free: 44.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007547/1.515, allocations: 0.6873 MB / 0.6275 GB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/1.515, allocations: 68.5 kB / 0.6276 GB, free: 43.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=254): time 7.008e-06/1.515, allocations: 0 / 0.6276 GB, free: 43.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=321): time 0.08241/1.598, allocations: 29.91 MB / 0.6568 GB, free: 37.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/1.598, allocations: 262.2 kB / 0.657 GB, free: 37.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007282/1.605, allocations: 3.921 MB / 0.6609 GB, free: 35.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006556/1.606, allocations: 31.39 kB / 0.6609 GB, free: 35.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002792/1.608, allocations: 3.99 MB / 0.6648 GB, free: 32.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001481/1.61, allocations: 1.152 MB / 0.6659 GB, free: 31.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007658/1.611, allocations: 3.094 kB / 0.6659 GB, free: 31.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005306/1.611, allocations: 0.6431 MB / 0.6665 GB, free: 31.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006062/1.617, allocations: 3.152 MB / 0.6696 GB, free: 30.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00854/1.626, allocations: 7.5 MB / 0.6769 GB, free: 23.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008832/1.635, allocations: 4.832 MB / 0.6817 GB, free: 20.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001429/1.635, allocations: 47.75 kB / 0.6817 GB, free: 20.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.02651/1.662, allocations: 11.44 MB / 0.6929 GB, free: 11.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/1.662, allocations: 74.19 kB / 0.693 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001808/1.662, allocations: 152 kB / 0.6931 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006782/1.669, allocations: 2.164 MB / 0.6952 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007531/1.676, allocations: 1.814 MB / 0.697 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02557/1.702, allocations: 13.67 MB / 0.7103 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007757/1.71, allocations: 305.5 kB / 0.7106 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001833/1.712, allocations: 472.2 kB / 0.7111 GB, free: 11.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (956): * Single equations (assignments): 951 * 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%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002205/1.714, allocations: 0.4969 MB / 0.7116 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/1.715, allocations: 460.2 kB / 0.712 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/1.732, allocations: 6.753 MB / 0.7186 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.686e-05/1.732, allocations: 32 kB / 0.7186 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.834e-05/1.732, allocations: 12 kB / 0.7186 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-05/1.732, allocations: 12.66 kB / 0.7186 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03949/1.771, allocations: 14.79 MB / 0.7331 GB, free: 9.336 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.145e-05/1.772, allocations: 10.25 kB / 0.7331 GB, free: 9.328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003374/1.775, allocations: 0.507 MB / 0.7336 GB, free: 8.914 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006594/1.782, allocations: 1.862 MB / 0.7354 GB, free: 7.562 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006371/1.782, allocations: 23.61 kB / 0.7354 GB, free: 7.543 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02343/1.806, allocations: 11.93 MB / 0.7471 GB, free: 12.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.556e-05/1.806, allocations: 11.94 kB / 0.7471 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02474/1.83, allocations: 11.73 MB / 0.7585 GB, free: 408 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2593/2.09, allocations: 0.9948 MB / 0.7595 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001203/2.091, allocations: 16.39 kB / 0.7595 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003234/2.094, allocations: 166.3 kB / 0.7597 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00075/2.095, allocations: 200 kB / 0.7599 GB, free: 115.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003885/2.095, allocations: 89.44 kB / 0.76 GB, free: 115.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005708/2.101, allocations: 2.665 MB / 0.7626 GB, free: 115.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.25e-06/2.101, allocations: 0.7812 kB / 0.7626 GB, free: 115.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009166/2.11, allocations: 1.285 MB / 0.7638 GB, free: 115.3 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 255 * 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.0009094/2.111, allocations: 164.4 kB / 0.764 GB, free: 115.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01755/2.129, allocations: 8.478 MB / 0.7723 GB, free: 114.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/2.129, allocations: 6.438 kB / 0.7723 GB, free: 114.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009193/2.138, allocations: 3.775 MB / 0.776 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003619/2.142, allocations: 0.4999 MB / 0.7764 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/2.169, allocations: 12.7 MB / 0.7889 GB, free: 112.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008011/2.177, allocations: 4.518 MB / 0.7933 GB, free: 111.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001991/2.179, allocations: 386.6 kB / 0.7936 GB, free: 111.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.956e-06/2.179, allocations: 3.812 kB / 0.7936 GB, free: 111.4 MB / 458.7 MB Notification: Performance of Templates: time 0.1603/2.34, allocations: 127.8 MB / 0.9184 GB, free: 13.34 MB / 458.7 MB