Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.019/2.019, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004409/0.0004411, allocations: 12 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3735, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.5603, allocations: 98.91 MB / 430.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/0.5607, allocations: 87.89 kB / 430.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.905/1.466, allocations: 137 MB / 0.5545 GB, free: 42.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.777e-06/1.466, allocations: 4 kB / 0.5545 GB, free: 42.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007861/1.467, allocations: 139.9 kB / 0.5547 GB, free: 42.54 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.04259/1.509, allocations: 7.639 MB / 0.5621 GB, free: 34.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.509, allocations: 8.031 kB / 0.5621 GB, free: 34.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06198/1.571, allocations: 7.549 MB / 0.5695 GB, free: 27.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03482/1.606, allocations: 9.829 MB / 0.5791 GB, free: 17.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006391/1.607, allocations: 492.8 kB / 0.5796 GB, free: 16.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003792/1.611, allocations: 0.648 MB / 0.5802 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05417/1.665, allocations: 16.76 MB / 0.5966 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005869/1.666, allocations: 99.05 kB / 0.5966 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003576/1.669, allocations: 311.8 kB / 0.5969 GB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004352/1.674, allocations: 1.58 MB / 0.5985 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05206/1.726, allocations: 13.73 MB / 0.6119 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.465/2.191, allocations: 74.24 MB / 0.6844 GB, free: 28.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03863/2.229, allocations: 7.686 MB / 0.6919 GB, free: 27.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05109/2.281, allocations: 18.61 MB / 0.7101 GB, free: 21.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.495e-05/2.281, allocations: 64.11 kB / 0.7101 GB, free: 21.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.334e-06/2.281, allocations: 3.188 kB / 0.7101 GB, free: 21.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.3085/2.589, allocations: 49.8 MB / 0.7588 GB, free: 0.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/2.589, allocations: 269.8 kB / 0.759 GB, free: 184 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0199/2.609, allocations: 6.217 MB / 0.7651 GB, free: 11.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0011/2.611, allocations: 80.91 kB / 0.7652 GB, free: 11.55 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005466/2.616, allocations: 4.552 MB / 0.7696 GB, free: 7.434 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002874/2.619, allocations: 1.332 MB / 0.7709 GB, free: 6.254 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/2.62, allocations: 184 kB / 0.7711 GB, free: 6.074 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009042/2.621, allocations: 0.6915 MB / 0.7718 GB, free: 5.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0115/2.633, allocations: 3.782 MB / 0.7755 GB, free: 2.289 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02327/2.656, allocations: 9.367 MB / 0.7846 GB, free: 8.449 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01627/2.673, allocations: 5.638 MB / 0.7901 GB, free: 3.207 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000228/2.673, allocations: 56 kB / 0.7902 GB, free: 3.152 MB / 458.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.4048/3.078, allocations: 16.46 MB / 0.8062 GB, free: 101.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000207/3.078, allocations: 83.06 kB / 0.8063 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004193/3.078, allocations: 180.8 kB / 0.8065 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02598/3.104, allocations: 4.174 MB / 0.8106 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0132/3.118, allocations: 2.029 MB / 0.8126 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0586/3.176, allocations: 22.92 MB / 0.8349 GB, free: 97.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01163/3.188, allocations: 0.5456 MB / 0.8355 GB, free: 97.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002597/3.191, allocations: 0.5314 MB / 0.836 GB, free: 97.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1077): * Single equations (assignments): 1072 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0104/3.201, allocations: 3.116 MB / 0.839 GB, free: 95.78 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/3.203, allocations: 0.571 MB / 0.8396 GB, free: 95.78 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04163/3.245, allocations: 9.817 MB / 0.8492 GB, free: 92.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.369e-05/3.245, allocations: 39.53 kB / 0.8492 GB, free: 92.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.941e-05/3.245, allocations: 17.53 kB / 0.8492 GB, free: 92.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.629e-05/3.245, allocations: 20.17 kB / 0.8492 GB, free: 92.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06953/3.315, allocations: 19.17 MB / 0.868 GB, free: 86.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.306e-05/3.315, allocations: 0 / 0.868 GB, free: 86.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005079/3.32, allocations: 0.4957 MB / 0.8685 GB, free: 86.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02349/3.343, allocations: 3.679 MB / 0.872 GB, free: 84.87 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001036/3.344, allocations: 61.48 kB / 0.8721 GB, free: 84.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05017/3.395, allocations: 19.81 MB / 0.8915 GB, free: 68.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/3.395, allocations: 0 / 0.8915 GB, free: 68.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0479/3.443, allocations: 14.16 MB / 0.9053 GB, free: 55.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004426/3.447, allocations: 1.108 MB / 0.9064 GB, free: 54.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002156/3.449, allocations: 60 kB / 0.9064 GB, free: 54.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006512/3.456, allocations: 245 kB / 0.9067 GB, free: 54.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001558/3.457, allocations: 222.1 kB / 0.9069 GB, free: 54.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004317/3.458, allocations: 87.98 kB / 0.9069 GB, free: 53.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01032/3.468, allocations: 3.788 MB / 0.9106 GB, free: 50.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/3.468, allocations: 0 / 0.9106 GB, free: 50.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01204/3.48, allocations: 1.845 MB / 0.9125 GB, free: 48.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (264): * Single equations (assignments): 259 * 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 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001426/3.482, allocations: 219.2 kB / 0.9127 GB, free: 48.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02389/3.506, allocations: 9.629 MB / 0.9221 GB, free: 38.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/3.506, allocations: 3.312 kB / 0.9221 GB, free: 38.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009514/3.515, allocations: 3.745 MB / 0.9257 GB, free: 34.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00627/3.522, allocations: 0.7093 MB / 0.9264 GB, free: 34.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04752/3.569, allocations: 19.12 MB / 0.9451 GB, free: 15.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01747/3.587, allocations: 5.005 MB / 0.95 GB, free: 10.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003809/3.59, allocations: 443.4 kB / 0.9504 GB, free: 9.738 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/3.591, allocations: 0 / 0.9504 GB, free: 9.738 MB / 458.7 MB Notification: Performance of Templates: time 0.6641/4.255, allocations: 145.8 MB / 1.093 GB, free: 34.17 MB / 474.7 MB