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: 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.992/1.992, allocations: 209.3 MB / 225.4 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004602, allocations: 15.98 kB / 283.1 MB, free: 9.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1114, allocations: 48.7 MB / 331.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.446/0.5574, allocations: 96.06 MB / 427.9 MB, free: 5.164 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5578, allocations: 79.97 kB / 427.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7767/1.335, allocations: 118.9 MB / 0.5341 GB, free: 88.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.335, allocations: 0 / 0.5341 GB, free: 88.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004339/1.335, allocations: 121.8 kB / 0.5342 GB, free: 88.5 MB / 410.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.02739/1.362, allocations: 6.424 MB / 0.5405 GB, free: 85.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/1.363, allocations: 15.25 kB / 0.5405 GB, free: 85.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04939/1.412, allocations: 6.983 MB / 0.5473 GB, free: 82.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02686/1.439, allocations: 7.821 MB / 0.5549 GB, free: 78.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005718/1.439, allocations: 439.2 kB / 0.5554 GB, free: 78.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003281/1.443, allocations: 0.5723 MB / 0.5559 GB, free: 77.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04125/1.484, allocations: 13.97 MB / 0.5695 GB, free: 62.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005034/1.485, allocations: 91.48 kB / 0.5696 GB, free: 62.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002984/1.488, allocations: 281.4 kB / 0.5699 GB, free: 62.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002706/1.49, allocations: 1.317 MB / 0.5712 GB, free: 60.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03478/1.525, allocations: 11.69 MB / 0.5826 GB, free: 49.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09779/1.623, allocations: 62.03 MB / 0.6432 GB, free: 1.492 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3244/1.947, allocations: 5.749 MB / 0.6488 GB, free: 96.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001098/1.949, allocations: 0.6848 MB / 0.6495 GB, free: 96.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/1.949, allocations: 59.83 kB / 0.6495 GB, free: 96.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 6.612e-06/1.949, allocations: 0.7812 kB / 0.6495 GB, free: 96.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.1766/2.125, allocations: 35.02 MB / 0.6837 GB, free: 90.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/2.126, allocations: 270.8 kB / 0.684 GB, free: 89.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/2.138, allocations: 5.25 MB / 0.6891 GB, free: 87.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009394/2.139, allocations: 73.55 kB / 0.6892 GB, free: 87.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003355/2.142, allocations: 3.87 MB / 0.693 GB, free: 84.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002079/2.144, allocations: 1.188 MB / 0.6941 GB, free: 84.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/2.146, allocations: 150.2 kB / 0.6943 GB, free: 83.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006637/2.146, allocations: 0.6337 MB / 0.6949 GB, free: 83.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008673/2.155, allocations: 3.317 MB / 0.6981 GB, free: 82.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01175/2.167, allocations: 7.584 MB / 0.7055 GB, free: 75.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01111/2.178, allocations: 4.924 MB / 0.7103 GB, free: 73.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000175/2.178, allocations: 45.66 kB / 0.7104 GB, free: 73.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03485/2.213, allocations: 12.36 MB / 0.7225 GB, free: 66.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/2.213, allocations: 71.28 kB / 0.7225 GB, free: 66.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002311/2.213, allocations: 148.9 kB / 0.7227 GB, free: 66.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009112/2.223, allocations: 2.109 MB / 0.7247 GB, free: 64.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0112/2.234, allocations: 1.759 MB / 0.7264 GB, free: 63.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02912/2.263, allocations: 14.81 MB / 0.7409 GB, free: 49.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009404/2.272, allocations: 452.9 kB / 0.7413 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001897/2.274, allocations: 446.1 kB / 0.7418 GB, free: 49.09 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.008496/2.283, allocations: 2.811 MB / 0.7445 GB, free: 46.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001601/2.285, allocations: 0.4893 MB / 0.745 GB, free: 46.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02274/2.307, allocations: 7.042 MB / 0.7519 GB, free: 40.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-05/2.307, allocations: 35.62 kB / 0.7519 GB, free: 40.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.661e-05/2.308, allocations: 12 kB / 0.7519 GB, free: 40.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-05/2.308, allocations: 17.55 kB / 0.7519 GB, free: 40.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06074/2.368, allocations: 16.01 MB / 0.7676 GB, free: 24.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.973e-05/2.368, allocations: 8 kB / 0.7676 GB, free: 24.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006505/2.375, allocations: 0.507 MB / 0.7681 GB, free: 24.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0112/2.386, allocations: 1.851 MB / 0.7699 GB, free: 22.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009698/2.387, allocations: 63.61 kB / 0.7699 GB, free: 22.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03242/2.42, allocations: 13.28 MB / 0.7829 GB, free: 8.879 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.906e-06/2.42, allocations: 11.94 kB / 0.7829 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03056/2.45, allocations: 11.25 MB / 0.7939 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004476/2.455, allocations: 1.053 MB / 0.7949 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002254/2.457, allocations: 60.78 kB / 0.795 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005637/2.463, allocations: 210.9 kB / 0.7952 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001355/2.464, allocations: 210.2 kB / 0.7954 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007935/2.465, allocations: 87.12 kB / 0.7955 GB, free: 11.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01005/2.475, allocations: 3.313 MB / 0.7987 GB, free: 8.504 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.475, allocations: 4 kB / 0.7987 GB, free: 8.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01805/2.493, allocations: 1.489 MB / 0.8002 GB, free: 7.016 MB / 442.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.001982/2.495, allocations: 221.5 kB / 0.8004 GB, free: 6.801 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.33/2.825, allocations: 8.269 MB / 0.8084 GB, free: 102.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/2.825, allocations: 1.188 kB / 0.8085 GB, free: 102.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01433/2.84, allocations: 3.897 MB / 0.8123 GB, free: 102 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/2.846, allocations: 0.6184 MB / 0.8129 GB, free: 102 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04772/2.893, allocations: 17.55 MB / 0.83 GB, free: 95.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01168/2.905, allocations: 4.516 MB / 0.8344 GB, free: 94.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002967/2.908, allocations: 410.3 kB / 0.8348 GB, free: 94.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.983e-06/2.908, allocations: 0 / 0.8348 GB, free: 94.82 MB / 442.7 MB Notification: Performance of Templates: time 0.2481/3.156, allocations: 130.8 MB / 0.9626 GB, free: 14.59 MB / 458.7 MB