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.Universal.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.Universal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Universal") Notification: Performance of loadModel(ModelicaTest): time 2.09/2.09, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004839/0.000484, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3719, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1892/0.5611, allocations: 90.2 MB / 422 MB, free: 4.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.5615, allocations: 79.97 kB / 422.1 MB, free: 4.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.75/1.312, allocations: 94.71 MB / 0.5047 GB, free: 88.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.598e-06/1.312, allocations: 0 / 0.5047 GB, free: 88.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003585/1.312, allocations: 77.84 kB / 0.5048 GB, free: 88.27 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: 1761 * Number of variables: 1761 Notification: Performance of Generate backend data structure: time 0.02479/1.337, allocations: 4.389 MB / 0.509 GB, free: 85.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.843e-05/1.337, allocations: 13.91 kB / 0.5091 GB, free: 85.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03727/1.374, allocations: 3.599 MB / 0.5126 GB, free: 83.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0223/1.397, allocations: 4.48 MB / 0.5169 GB, free: 80.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005826/1.397, allocations: 343.5 kB / 0.5173 GB, free: 80 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003828/1.401, allocations: 445.9 kB / 0.5177 GB, free: 79.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04376/1.445, allocations: 11.8 MB / 0.5292 GB, free: 67.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002601/1.445, allocations: 35.72 kB / 0.5293 GB, free: 67.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002935/1.448, allocations: 201 kB / 0.5294 GB, free: 67.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/1.451, allocations: 1.339 MB / 0.5308 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03393/1.485, allocations: 11.43 MB / 0.5419 GB, free: 54.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08817/1.573, allocations: 41.33 MB / 0.5823 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01877/1.592, allocations: 5.935 MB / 0.5881 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002302/1.595, allocations: 1.898 MB / 0.5899 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/1.595, allocations: 52.56 kB / 0.59 GB, free: 3.859 MB / 394.7 MB Notification: Performance of pre-optimization done (n=262): time 7.043e-06/1.595, allocations: 0 / 0.59 GB, free: 3.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=283): time 0.09299/1.688, allocations: 20.88 MB / 0.6104 GB, free: 14.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.723e-05/1.688, allocations: 81.41 kB / 0.6104 GB, free: 14.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008302/1.696, allocations: 3.039 MB / 0.6134 GB, free: 11.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008306/1.697, allocations: 65.69 kB / 0.6135 GB, free: 11.47 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003594/1.701, allocations: 2.972 MB / 0.6164 GB, free: 8.461 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/1.703, allocations: 1.014 MB / 0.6174 GB, free: 7.434 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009641/1.704, allocations: 124 kB / 0.6175 GB, free: 7.312 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007447/1.705, allocations: 0.5669 MB / 0.618 GB, free: 6.734 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01009/1.715, allocations: 2.83 MB / 0.6208 GB, free: 3.895 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3415/2.056, allocations: 6.011 MB / 0.6267 GB, free: 104.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/2.069, allocations: 4.112 MB / 0.6307 GB, free: 104.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003185/2.069, allocations: 32.12 kB / 0.6307 GB, free: 104.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.03367/2.103, allocations: 9.921 MB / 0.6404 GB, free: 104.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/2.103, allocations: 51.16 kB / 0.6405 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000199/2.103, allocations: 112.2 kB / 0.6406 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00668/2.11, allocations: 1.373 MB / 0.6419 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009452/2.119, allocations: 1.384 MB / 0.6433 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01667/2.136, allocations: 7.402 MB / 0.6505 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007737/2.144, allocations: 407 kB / 0.6509 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001862/2.146, allocations: 342.2 kB / 0.6512 GB, free: 101.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * Number of states: 0 () * Number of discrete variables: 27 (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],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (717): * Single equations (assignments): 710 * 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%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007584/2.153, allocations: 2.291 MB / 0.6534 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009569/2.154, allocations: 308.2 kB / 0.6537 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.021/2.175, allocations: 6.592 MB / 0.6602 GB, free: 98.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001231/2.175, allocations: 49.72 kB / 0.6602 GB, free: 98.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/2.175, allocations: 2.969 kB / 0.6602 GB, free: 98.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.534e-05/2.176, allocations: 14.77 kB / 0.6602 GB, free: 98.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06401/2.24, allocations: 14.01 MB / 0.6739 GB, free: 93.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.498e-05/2.24, allocations: 7.781 kB / 0.6739 GB, free: 93.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009953/2.25, allocations: 459.8 kB / 0.6744 GB, free: 93.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/2.266, allocations: 1.196 MB / 0.6755 GB, free: 93.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004268/2.27, allocations: 52.41 kB / 0.6756 GB, free: 93.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02091/2.291, allocations: 6.738 MB / 0.6822 GB, free: 89.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.658e-05/2.291, allocations: 14.84 kB / 0.6822 GB, free: 89.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02795/2.319, allocations: 9.808 MB / 0.6918 GB, free: 81.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003191/2.322, allocations: 0.8215 MB / 0.6926 GB, free: 80.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001412/2.324, allocations: 51.78 kB / 0.6926 GB, free: 80.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003867/2.328, allocations: 201.5 kB / 0.6928 GB, free: 80.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001091/2.329, allocations: 161.3 kB / 0.693 GB, free: 80.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004258/2.329, allocations: 77.8 kB / 0.693 GB, free: 80.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005329/2.335, allocations: 1.872 MB / 0.6949 GB, free: 78.92 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.335, allocations: 0 / 0.6949 GB, free: 78.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007893/2.343, allocations: 1.141 MB / 0.696 GB, free: 77.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.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 (218): * Single equations (assignments): 211 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001244/2.344, allocations: 198.6 kB / 0.6962 GB, free: 77.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01715/2.361, allocations: 6.92 MB / 0.7029 GB, free: 71.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/2.361, allocations: 0 / 0.7029 GB, free: 71.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009528/2.371, allocations: 2.767 MB / 0.7056 GB, free: 69.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004787/2.375, allocations: 366.2 kB / 0.706 GB, free: 68.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05478/2.43, allocations: 13.92 MB / 0.7196 GB, free: 55.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007757/2.438, allocations: 3.681 MB / 0.7231 GB, free: 53.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/2.441, allocations: 287.8 kB / 0.7234 GB, free: 52.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/2.441, allocations: 0 / 0.7234 GB, free: 52.89 MB / 426.7 MB Notification: Performance of Templates: time 0.6115/3.052, allocations: 80.27 MB / 0.8018 GB, free: 111.9 MB / 442.7 MB