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.Spherical.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.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 1.921/1.921, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.978e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.0853, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3567/0.4421, allocations: 88.49 MB / 415 MB, free: 3.242 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.4423, allocations: 76.02 kB / 415.1 MB, free: 3.203 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3146/0.7569, allocations: 82.68 MB / 497.8 MB, free: 7.418 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.7569, allocations: 0 / 497.8 MB, free: 7.418 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00018/0.7571, allocations: 71.94 kB / 497.9 MB, free: 7.348 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.01533/0.7725, allocations: 3.844 MB / 0.4899 GB, free: 3.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.7725, allocations: 8.031 kB / 0.49 GB, free: 3.434 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02926/0.8018, allocations: 5.883 MB / 0.4957 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01737/0.8192, allocations: 5.294 MB / 0.5009 GB, free: 8.191 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004009/0.8197, allocations: 279.2 kB / 0.5011 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002023/0.8217, allocations: 363.9 kB / 0.5015 GB, free: 7.562 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02753/0.8493, allocations: 10.34 MB / 0.5116 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.8494, allocations: 31.7 kB / 0.5116 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009804/0.8504, allocations: 167.9 kB / 0.5118 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00215/0.8526, allocations: 1.156 MB / 0.5129 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02595/0.8786, allocations: 9.973 MB / 0.5226 GB, free: 1.383 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2978/1.176, allocations: 37.32 MB / 0.5591 GB, free: 82.03 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01466/1.191, allocations: 5.565 MB / 0.5645 GB, free: 80.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003969/1.195, allocations: 2.303 MB / 0.5668 GB, free: 80.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001778/1.197, allocations: 1.88 MB / 0.5686 GB, free: 78.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/1.197, allocations: 55.77 kB / 0.5687 GB, free: 78.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 6.567e-06/1.197, allocations: 0 / 0.5687 GB, free: 78.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.03925/1.236, allocations: 12.4 MB / 0.5808 GB, free: 75.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001111/1.237, allocations: 1.525 MB / 0.5823 GB, free: 73.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004171/1.242, allocations: 2.46 MB / 0.5847 GB, free: 73.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004724/1.242, allocations: 56.36 kB / 0.5847 GB, free: 73.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/1.244, allocations: 2.669 MB / 0.5873 GB, free: 71.22 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009788/1.245, allocations: 0.8484 MB / 0.5881 GB, free: 70.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004197/1.245, allocations: 108.1 kB / 0.5882 GB, free: 70.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003393/1.245, allocations: 0.5486 MB / 0.5888 GB, free: 70.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004583/1.25, allocations: 2.55 MB / 0.5913 GB, free: 69.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00651/1.257, allocations: 5.517 MB / 0.5967 GB, free: 64.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006658/1.263, allocations: 3.781 MB / 0.6004 GB, free: 63.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.147e-05/1.263, allocations: 30.69 kB / 0.6004 GB, free: 63.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.07358/1.337, allocations: 18.79 MB / 0.6187 GB, free: 56.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.175e-05/1.337, allocations: 52.25 kB / 0.6188 GB, free: 56.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04822/1.385, allocations: 11.97 MB / 0.6305 GB, free: 46.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05278/1.438, allocations: 10.3 MB / 0.6405 GB, free: 35.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005144/1.443, allocations: 1.24 MB / 0.6417 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02997/1.473, allocations: 15.87 MB / 0.6572 GB, free: 18.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005399/1.479, allocations: 447.5 kB / 0.6577 GB, free: 18.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.48, allocations: 315.2 kB / 0.658 GB, free: 17.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * Number of states: 0 () * Number of discrete variables: 21 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (649): * Single equations (assignments): 638 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001058/1.481, allocations: 488.5 kB / 0.6584 GB, free: 17.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005439/1.481, allocations: 279.4 kB / 0.6587 GB, free: 16.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/1.492, allocations: 5.068 MB / 0.6637 GB, free: 11.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009106/1.501, allocations: 4.36 MB / 0.6679 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/1.501, allocations: 0 / 0.6679 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.71e-05/1.501, allocations: 11.97 kB / 0.6679 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03034/1.531, allocations: 12.96 MB / 0.6806 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.32e-05/1.531, allocations: 11.12 kB / 0.6806 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002628/1.534, allocations: 403.5 kB / 0.681 GB, free: 9.973 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004075/1.538, allocations: 0.9308 MB / 0.6819 GB, free: 9.031 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005219/1.539, allocations: 54.86 kB / 0.6819 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009309/1.548, allocations: 5.427 MB / 0.6872 GB, free: 3.285 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00153/1.55, allocations: 1.459 MB / 0.6887 GB, free: 1.691 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2608/1.81, allocations: 8.278 MB / 0.6967 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008399/1.811, allocations: 331.5 kB / 0.6971 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007337/1.812, allocations: 44.27 kB / 0.6971 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/1.814, allocations: 199 kB / 0.6973 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/1.815, allocations: 144.4 kB / 0.6974 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/1.815, allocations: 66.69 kB / 0.6975 GB, free: 108.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003376/1.818, allocations: 1.677 MB / 0.6991 GB, free: 108.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.96e-07/1.818, allocations: 3.281 kB / 0.6991 GB, free: 108.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006664/1.825, allocations: 1.098 MB / 0.7002 GB, free: 108.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007218/1.826, allocations: 191 kB / 0.7004 GB, free: 108 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01395/1.84, allocations: 6.471 MB / 0.7067 GB, free: 107.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.475e-06/1.84, allocations: 4.672 kB / 0.7067 GB, free: 107.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00497/1.845, allocations: 2.5 MB / 0.7092 GB, free: 107.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/1.847, allocations: 342.9 kB / 0.7095 GB, free: 107.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/1.867, allocations: 8.986 MB / 0.7183 GB, free: 105.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005449/1.873, allocations: 3.25 MB / 0.7214 GB, free: 104.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/1.874, allocations: 260.9 kB / 0.7217 GB, free: 104.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.935e-06/1.874, allocations: 0 / 0.7217 GB, free: 104.8 MB / 442.7 MB Notification: Performance of Templates: time 0.1543/2.029, allocations: 106.5 MB / 0.8257 GB, free: 28.51 MB / 442.7 MB