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.Planar.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.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.596e-05, allocations: 11.98 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08743/0.08751, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.4813, allocations: 92.96 MB / 419.5 MB, free: 14.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.4816, allocations: 70.22 kB / 419.6 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4547/0.9363, allocations: 116.6 MB / 0.5236 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.247e-06/0.9364, allocations: 0 / 0.5236 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002401/0.9366, allocations: 88 kB / 0.5237 GB, free: 0.6719 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.2575/1.194, allocations: 4.434 MB / 0.5281 GB, free: 88.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/1.194, allocations: 7.688 kB / 0.5281 GB, free: 88.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01916/1.213, allocations: 3.663 MB / 0.5316 GB, free: 87.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02396/1.237, allocations: 4.794 MB / 0.5363 GB, free: 87.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008331/1.238, allocations: 377.8 kB / 0.5367 GB, free: 87.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003592/1.242, allocations: 0.4885 MB / 0.5372 GB, free: 87.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05022/1.292, allocations: 12.09 MB / 0.549 GB, free: 86.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004399/1.293, allocations: 36.12 kB / 0.549 GB, free: 86.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003281/1.296, allocations: 220.4 kB / 0.5492 GB, free: 86.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002841/1.299, allocations: 1.4 MB / 0.5506 GB, free: 86.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02577/1.325, allocations: 11.15 MB / 0.5615 GB, free: 86.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0687/1.394, allocations: 42.73 MB / 0.6032 GB, free: 62.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/1.405, allocations: 4.693 MB / 0.6078 GB, free: 59.85 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003841/1.409, allocations: 2.415 MB / 0.6101 GB, free: 58.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001171/1.41, allocations: 1.319 MB / 0.6114 GB, free: 57.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/1.41, allocations: 51.47 kB / 0.6115 GB, free: 57.67 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 7.377e-06/1.41, allocations: 3.594 kB / 0.6115 GB, free: 57.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.04736/1.457, allocations: 16.36 MB / 0.6274 GB, free: 44.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/1.457, allocations: 102.6 kB / 0.6275 GB, free: 44.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004957/1.462, allocations: 2.855 MB / 0.6303 GB, free: 41.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004148/1.463, allocations: 57.7 kB / 0.6304 GB, free: 41.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001762/1.465, allocations: 3.229 MB / 0.6335 GB, free: 38.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/1.466, allocations: 0.9792 MB / 0.6345 GB, free: 38.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004703/1.466, allocations: 119.2 kB / 0.6346 GB, free: 37.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003863/1.467, allocations: 0.5697 MB / 0.6352 GB, free: 37.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004376/1.471, allocations: 2.419 MB / 0.6375 GB, free: 35.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006389/1.477, allocations: 5.764 MB / 0.6432 GB, free: 28.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006481/1.484, allocations: 3.762 MB / 0.6468 GB, free: 25.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.581e-05/1.484, allocations: 32 kB / 0.6469 GB, free: 25.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.01952/1.504, allocations: 8.878 MB / 0.6555 GB, free: 17.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.488e-05/1.504, allocations: 60.91 kB / 0.6556 GB, free: 17.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/1.504, allocations: 120 kB / 0.6557 GB, free: 17.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003842/1.508, allocations: 1.066 MB / 0.6567 GB, free: 16.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005961/1.514, allocations: 1.382 MB / 0.6581 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008146/1.522, allocations: 5.073 MB / 0.6631 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005396/1.527, allocations: 327.4 kB / 0.6634 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/1.528, allocations: 355.6 kB / 0.6637 GB, free: 10.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 736 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001353/1.53, allocations: 0.5475 MB / 0.6642 GB, free: 9.895 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006401/1.53, allocations: 323.8 kB / 0.6645 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/1.544, allocations: 5.314 MB / 0.6697 GB, free: 4.926 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000188/1.544, allocations: 43.98 kB / 0.6698 GB, free: 4.883 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-05/1.544, allocations: 4 kB / 0.6698 GB, free: 4.879 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.833e-05/1.544, allocations: 13.17 kB / 0.6698 GB, free: 4.867 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1018/1.646, allocations: 13.28 MB / 0.6828 GB, free: 7.402 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.203e-05/1.646, allocations: 12.95 kB / 0.6828 GB, free: 7.391 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002703/1.649, allocations: 427.3 kB / 0.6832 GB, free: 6.973 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003929/1.653, allocations: 0.8902 MB / 0.6841 GB, free: 6.078 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004808/1.653, allocations: 48 kB / 0.6841 GB, free: 6.031 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009708/1.663, allocations: 4.426 MB / 0.6884 GB, free: 1.477 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-05/1.663, allocations: 15.94 kB / 0.6884 GB, free: 1.461 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2655/1.929, allocations: 9.023 MB / 0.6973 GB, free: 91.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002144/1.931, allocations: 0.7302 MB / 0.698 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000827/1.932, allocations: 57.61 kB / 0.698 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/1.934, allocations: 139.9 kB / 0.6982 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005219/1.935, allocations: 168.7 kB / 0.6983 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.935, allocations: 86.17 kB / 0.6984 GB, free: 91.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004227/1.939, allocations: 1.951 MB / 0.7003 GB, free: 91.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.55e-07/1.939, allocations: 0 / 0.7003 GB, free: 91.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006847/1.946, allocations: 1.118 MB / 0.7014 GB, free: 91.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007063/1.947, allocations: 195.2 kB / 0.7016 GB, free: 91.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01182/1.959, allocations: 5.931 MB / 0.7074 GB, free: 90.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/1.959, allocations: 3.938 kB / 0.7074 GB, free: 90.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004149/1.963, allocations: 2.225 MB / 0.7095 GB, free: 90.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/1.966, allocations: 397.9 kB / 0.7099 GB, free: 90.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.023/1.989, allocations: 10.32 MB / 0.72 GB, free: 88.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007349/1.996, allocations: 3.928 MB / 0.7238 GB, free: 87.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001469/1.997, allocations: 292 kB / 0.7241 GB, free: 87.82 MB / 442.7 MB Notification: Performance of SimCode: time 2.067e-06/1.998, allocations: 0 / 0.7241 GB, free: 87.82 MB / 442.7 MB Notification: Performance of Templates: time 0.1166/2.114, allocations: 82.85 MB / 0.805 GB, free: 41.79 MB / 442.7 MB