Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.045/2.045, allocations: 209.2 MB / 225.4 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006022/0.0006027, allocations: 8 kB / 283.1 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3926, allocations: 48.69 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2251/0.6177, allocations: 96.17 MB / 428 MB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.618, allocations: 75.97 kB / 428 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8779/1.496, allocations: 127.1 MB / 0.5421 GB, free: 54.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.496, allocations: 0 / 0.5421 GB, free: 54.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005096/1.496, allocations: 116 kB / 0.5422 GB, free: 54.69 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: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.02972/1.526, allocations: 6.783 MB / 0.5488 GB, free: 47.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/1.526, allocations: 8.031 kB / 0.5489 GB, free: 47.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06053/1.587, allocations: 8.314 MB / 0.557 GB, free: 39.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02872/1.616, allocations: 7.397 MB / 0.5642 GB, free: 32.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006461/1.616, allocations: 443.7 kB / 0.5646 GB, free: 31.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004318/1.621, allocations: 0.5857 MB / 0.5652 GB, free: 31.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04891/1.67, allocations: 15.76 MB / 0.5806 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004834/1.67, allocations: 79.23 kB / 0.5807 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003798/1.674, allocations: 283.8 kB / 0.5809 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003594/1.678, allocations: 1.612 MB / 0.5825 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04248/1.72, allocations: 13.99 MB / 0.5962 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4658/2.186, allocations: 63.98 MB / 0.6586 GB, free: 49.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02372/2.21, allocations: 6.462 MB / 0.665 GB, free: 48.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03535/2.245, allocations: 14.44 MB / 0.6791 GB, free: 44.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.35e-05/2.245, allocations: 69.34 kB / 0.6791 GB, free: 44.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 7.554e-06/2.245, allocations: 0 / 0.6791 GB, free: 44.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2969/2.542, allocations: 42.57 MB / 0.7207 GB, free: 36.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/2.542, allocations: 212.5 kB / 0.7209 GB, free: 36.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01371/2.556, allocations: 5.411 MB / 0.7262 GB, free: 34.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001037/2.557, allocations: 77.3 kB / 0.7263 GB, free: 34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003657/2.561, allocations: 4.284 MB / 0.7304 GB, free: 30.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002127/2.563, allocations: 1.252 MB / 0.7317 GB, free: 29.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/2.565, allocations: 169.7 kB / 0.7318 GB, free: 28.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006819/2.565, allocations: 0.6821 MB / 0.7325 GB, free: 28.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01075/2.576, allocations: 4.567 MB / 0.737 GB, free: 24.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01424/2.59, allocations: 9.534 MB / 0.7463 GB, free: 13.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01437/2.605, allocations: 6.431 MB / 0.7525 GB, free: 7.699 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000203/2.605, allocations: 52 kB / 0.7526 GB, free: 7.648 MB / 426.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.0819/2.687, allocations: 18.71 MB / 0.7709 GB, free: 6.824 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002274/2.687, allocations: 80 kB / 0.7709 GB, free: 6.746 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004173/2.688, allocations: 172 kB / 0.7711 GB, free: 6.578 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04682/2.734, allocations: 5.629 MB / 0.7766 GB, free: 0.9375 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01422/2.749, allocations: 2.059 MB / 0.7786 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4034/3.152, allocations: 24.28 MB / 0.8023 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/3.163, allocations: 0.5368 MB / 0.8029 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/3.166, allocations: 0.5023 MB / 0.8033 GB, free: 107.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009768/3.176, allocations: 3.096 MB / 0.8064 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001661/3.177, allocations: 0.4994 MB / 0.8069 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05636/3.234, allocations: 12.42 MB / 0.819 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001362/3.234, allocations: 61.33 kB / 0.819 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.21e-05/3.234, allocations: 7.75 kB / 0.8191 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.406e-05/3.234, allocations: 17.06 kB / 0.8191 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08315/3.317, allocations: 24.04 MB / 0.8425 GB, free: 98.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.618e-05/3.317, allocations: 3.781 kB / 0.8425 GB, free: 98.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005649/3.323, allocations: 0.5707 MB / 0.8431 GB, free: 98.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03503/3.358, allocations: 4.643 MB / 0.8476 GB, free: 97.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008417/3.359, allocations: 65.61 kB / 0.8477 GB, free: 97.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05074/3.41, allocations: 19.58 MB / 0.8668 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/3.41, allocations: 9.625 kB / 0.8668 GB, free: 87.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0606/3.47, allocations: 16.77 MB / 0.8832 GB, free: 78.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004629/3.475, allocations: 1.221 MB / 0.8844 GB, free: 77.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002208/3.477, allocations: 55.56 kB / 0.8845 GB, free: 77.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00637/3.484, allocations: 245.1 kB / 0.8847 GB, free: 77.11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00152/3.485, allocations: 196.4 kB / 0.8849 GB, free: 77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005171/3.486, allocations: 84 kB / 0.885 GB, free: 76.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008955/3.495, allocations: 3.361 MB / 0.8882 GB, free: 74.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.583e-06/3.495, allocations: 1.531 kB / 0.8882 GB, free: 74.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01213/3.507, allocations: 1.702 MB / 0.8899 GB, free: 72.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001489/3.509, allocations: 215.7 kB / 0.8901 GB, free: 72.31 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02395/3.533, allocations: 10.52 MB / 0.9004 GB, free: 63.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/3.533, allocations: 0 / 0.9004 GB, free: 63.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009219/3.542, allocations: 3.993 MB / 0.9043 GB, free: 59.47 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005225/3.547, allocations: 0.5749 MB / 0.9048 GB, free: 58.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0417/3.589, allocations: 19.09 MB / 0.9235 GB, free: 39.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01093/3.6, allocations: 4.757 MB / 0.9281 GB, free: 35.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003175/3.603, allocations: 413.8 kB / 0.9285 GB, free: 34.83 MB / 458.7 MB Notification: Performance of SimCode: time 2.505e-06/3.603, allocations: 0 / 0.9285 GB, free: 34.83 MB / 458.7 MB Notification: Performance of Templates: time 0.5944/4.198, allocations: 142.5 MB / 1.068 GB, free: 43.32 MB / 458.7 MB