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.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,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.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 1.857/1.857, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004462, allocations: 12 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2869, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.08108/0.368, allocations: 60.04 MB / 391.2 MB, free: 2.355 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03732/0.4053, allocations: 14.14 MB / 405.4 MB, free: 4.168 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01312/0.4185, allocations: 307.2 kB / 405.7 MB, free: 3.867 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00972/0.4283, allocations: 3.017 MB / 408.7 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03047/0.4588, allocations: 8.614 MB / 417.3 MB, free: 8.199 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005435/0.4643, allocations: 1.287 MB / 418.6 MB, free: 6.91 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0409/0.5052, allocations: 19.19 MB / 437.8 MB, free: 3.699 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01224/0.5175, allocations: 6.333 MB / 444.1 MB, free: 13.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004169/0.5217, allocations: 1.869 MB / 446 MB, free: 11.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005237/0.527, allocations: 2.68 MB / 448.7 MB, free: 8.738 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001411/0.5284, allocations: 248 kB / 448.9 MB, free: 8.496 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003792/0.5323, allocations: 1.225 MB / 450.1 MB, free: 7.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004452/0.5368, allocations: 2.77 MB / 452.9 MB, free: 4.492 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.539, allocations: 1.314 MB / 454.2 MB, free: 3.168 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.5525, allocations: 8.877 MB / 463.1 MB, free: 10.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.994e-06/0.5526, allocations: 0 / 463.1 MB, free: 10.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.881e-06/0.5526, allocations: 0 / 463.1 MB, free: 10.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002313/0.5528, allocations: 0 / 463.1 MB, free: 10.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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02224/0.5751, allocations: 7.454 MB / 470.5 MB, free: 2.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.5751, allocations: 8.031 kB / 470.6 MB, free: 2.723 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4065/0.9817, allocations: 15.1 MB / 485.7 MB, free: 114.1 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01476/0.9965, allocations: 6.199 MB / 491.9 MB, free: 110.9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004277/0.997, allocations: 371.7 kB / 492.2 MB, free: 110.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001711/0.9987, allocations: 0.5016 MB / 492.7 MB, free: 110.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03187/1.031, allocations: 16.41 MB / 0.4972 GB, free: 93.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002445/1.031, allocations: 79.3 kB / 0.4973 GB, free: 92.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008719/1.032, allocations: 234.8 kB / 0.4975 GB, free: 92.76 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004265/1.036, allocations: 2.819 MB / 0.5002 GB, free: 89.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03195/1.068, allocations: 13.67 MB / 0.5136 GB, free: 76.27 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08415/1.152, allocations: 64.4 MB / 0.5765 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02703/1.179, allocations: 7.853 MB / 0.5842 GB, free: 2.383 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04084/1.22, allocations: 18.93 MB / 0.6027 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.594e-05/1.22, allocations: 64.56 kB / 0.6027 GB, free: 14.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.875e-06/1.22, allocations: 1.312 kB / 0.6027 GB, free: 14.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.4941/1.714, allocations: 53.12 MB / 0.6546 GB, free: 143.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/1.715, allocations: 276.9 kB / 0.6549 GB, free: 143 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01229/1.727, allocations: 6.539 MB / 0.6612 GB, free: 140.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007016/1.728, allocations: 78.16 kB / 0.6613 GB, free: 140.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003353/1.731, allocations: 4.535 MB / 0.6657 GB, free: 137 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001784/1.733, allocations: 1.363 MB / 0.6671 GB, free: 136 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008311/1.734, allocations: 180.8 kB / 0.6673 GB, free: 135.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005283/1.734, allocations: 0.6953 MB / 0.6679 GB, free: 135.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00819/1.742, allocations: 3.913 MB / 0.6718 GB, free: 133.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/1.753, allocations: 9.141 MB / 0.6807 GB, free: 123.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.763, allocations: 5.782 MB / 0.6863 GB, free: 118.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/1.763, allocations: 52 kB / 0.6864 GB, free: 118.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.0413/1.805, allocations: 16.69 MB / 0.7027 GB, free: 101.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001451/1.805, allocations: 80 kB / 0.7028 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001966/1.805, allocations: 184 kB / 0.7029 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01607/1.821, allocations: 4.18 MB / 0.707 GB, free: 97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008443/1.83, allocations: 2.051 MB / 0.709 GB, free: 94.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04366/1.873, allocations: 23.97 MB / 0.7324 GB, free: 70.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008903/1.882, allocations: 0.5077 MB / 0.7329 GB, free: 70.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001569/1.884, allocations: 0.5364 MB / 0.7334 GB, free: 69.68 MB / 442.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 (1083): * Single equations (assignments): 1078 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006522/1.891, allocations: 3.117 MB / 0.7365 GB, free: 66.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/1.892, allocations: 0.5785 MB / 0.737 GB, free: 65.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02646/1.918, allocations: 10.11 MB / 0.7469 GB, free: 55.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.954e-05/1.918, allocations: 36 kB / 0.747 GB, free: 55.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.162e-05/1.919, allocations: 23.94 kB / 0.747 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.369e-05/1.919, allocations: 15.94 kB / 0.747 GB, free: 55.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0474/1.966, allocations: 19.8 MB / 0.7663 GB, free: 35.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.566e-05/1.966, allocations: 0 / 0.7663 GB, free: 35.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003343/1.969, allocations: 0.5382 MB / 0.7669 GB, free: 35.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01482/1.984, allocations: 3.66 MB / 0.7704 GB, free: 31.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007257/1.985, allocations: 63.98 kB / 0.7705 GB, free: 31.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2978/2.283, allocations: 20.83 MB / 0.7908 GB, free: 133.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.812e-06/2.283, allocations: 1.375 kB / 0.7908 GB, free: 133.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03614/2.319, allocations: 14.69 MB / 0.8052 GB, free: 130.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003557/2.323, allocations: 1.162 MB / 0.8063 GB, free: 130.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001531/2.324, allocations: 63.88 kB / 0.8064 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004327/2.329, allocations: 214.3 kB / 0.8066 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001105/2.33, allocations: 224.8 kB / 0.8068 GB, free: 130 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004079/2.33, allocations: 100.1 kB / 0.8069 GB, free: 130 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008031/2.338, allocations: 4.164 MB / 0.811 GB, free: 128.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.289e-06/2.338, allocations: 0 / 0.811 GB, free: 128.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01014/2.348, allocations: 1.87 MB / 0.8128 GB, free: 128.4 MB / 442.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 (270): * Single equations (assignments): 265 * 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.001107/2.35, allocations: 227.7 kB / 0.813 GB, free: 128.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01904/2.369, allocations: 9.973 MB / 0.8227 GB, free: 124.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.695e-06/2.369, allocations: 0 / 0.8227 GB, free: 124.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007862/2.377, allocations: 3.938 MB / 0.8266 GB, free: 123 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004697/2.381, allocations: 0.7152 MB / 0.8273 GB, free: 122.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03388/2.415, allocations: 19.36 MB / 0.8462 GB, free: 106.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008938/2.424, allocations: 5.009 MB / 0.8511 GB, free: 101.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002797/2.427, allocations: 455.4 kB / 0.8515 GB, free: 101.3 MB / 442.7 MB Notification: Performance of SimCode: time 6.284e-06/2.427, allocations: 0 / 0.8515 GB, free: 101.3 MB / 442.7 MB Notification: Performance of Templates: time 0.489/2.916, allocations: 147 MB / 0.9951 GB, free: 128.1 MB / 458.7 MB