Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 1.765/1.765, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003508, allocations: 12 kB / 233.8 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08734/0.08771, allocations: 38.75 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4207/0.5085, allocations: 91.09 MB / 363.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/0.5089, allocations: 96.38 kB / 363.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8303/1.339, allocations: 137 MB / 0.489 GB, free: 62.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.339, allocations: 4 kB / 0.489 GB, free: 62.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004682/1.34, allocations: 128 kB / 0.4891 GB, free: 62.42 MB / 346.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.03184/1.372, allocations: 7.651 MB / 0.4966 GB, free: 54.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/1.372, allocations: 12.03 kB / 0.4966 GB, free: 54.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05543/1.427, allocations: 7.556 MB / 0.504 GB, free: 47.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03461/1.462, allocations: 9.719 MB / 0.5135 GB, free: 37.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006502/1.462, allocations: 493.2 kB / 0.5139 GB, free: 37.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003913/1.466, allocations: 0.6495 MB / 0.5146 GB, free: 36.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05254/1.519, allocations: 16.77 MB / 0.5309 GB, free: 18.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005112/1.52, allocations: 95.08 kB / 0.531 GB, free: 18.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003199/1.523, allocations: 318 kB / 0.5313 GB, free: 17.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00363/1.526, allocations: 1.58 MB / 0.5329 GB, free: 16.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04556/1.572, allocations: 13.77 MB / 0.5463 GB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4098/1.982, allocations: 74.3 MB / 0.6189 GB, free: 24.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05177/2.034, allocations: 7.732 MB / 0.6264 GB, free: 22.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05012/2.084, allocations: 18.71 MB / 0.6447 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.259e-05/2.084, allocations: 63.78 kB / 0.6448 GB, free: 12.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.464e-06/2.084, allocations: 0 / 0.6448 GB, free: 12.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.6013/2.685, allocations: 51.28 MB / 0.6948 GB, free: 89.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/2.686, allocations: 274 kB / 0.6951 GB, free: 89.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01817/2.704, allocations: 6.057 MB / 0.701 GB, free: 89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001141/2.705, allocations: 86.39 kB / 0.7011 GB, free: 88.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004533/2.71, allocations: 4.548 MB / 0.7055 GB, free: 86.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00254/2.712, allocations: 1.35 MB / 0.7068 GB, free: 85.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/2.714, allocations: 182.1 kB / 0.707 GB, free: 85.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006936/2.714, allocations: 0.7017 MB / 0.7077 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01057/2.725, allocations: 3.809 MB / 0.7114 GB, free: 85.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01457/2.739, allocations: 9.024 MB / 0.7202 GB, free: 78.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01441/2.754, allocations: 5.681 MB / 0.7258 GB, free: 77.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000253/2.754, allocations: 53.47 kB / 0.7258 GB, free: 77.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05821/2.812, allocations: 16.48 MB / 0.7419 GB, free: 71.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/2.813, allocations: 87.19 kB / 0.742 GB, free: 71.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003024/2.813, allocations: 185.8 kB / 0.7422 GB, free: 71.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02381/2.837, allocations: 4.135 MB / 0.7462 GB, free: 71.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01311/2.85, allocations: 2.045 MB / 0.7482 GB, free: 71.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05804/2.908, allocations: 22.9 MB / 0.7706 GB, free: 55.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01187/2.92, allocations: 0.5455 MB / 0.7711 GB, free: 55.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002415/2.922, allocations: 0.5315 MB / 0.7716 GB, free: 54.6 MB / 378.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.01041/2.933, allocations: 3.116 MB / 0.7747 GB, free: 51.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001908/2.935, allocations: 0.5741 MB / 0.7752 GB, free: 51.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03985/2.975, allocations: 9.843 MB / 0.7849 GB, free: 43.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.191e-05/2.975, allocations: 44.78 kB / 0.7849 GB, free: 43.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.756e-05/2.975, allocations: 16 kB / 0.7849 GB, free: 43.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.405e-05/2.975, allocations: 20.31 kB / 0.7849 GB, free: 43.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06899/3.044, allocations: 19.25 MB / 0.8037 GB, free: 25.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.585e-05/3.044, allocations: 0 / 0.8037 GB, free: 25.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005132/3.049, allocations: 0.507 MB / 0.8042 GB, free: 25.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02197/3.071, allocations: 3.623 MB / 0.8078 GB, free: 21.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001021/3.072, allocations: 63.98 kB / 0.8078 GB, free: 21.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3364/3.409, allocations: 19.79 MB / 0.8272 GB, free: 75.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/3.409, allocations: 4.406 kB / 0.8272 GB, free: 75.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05162/3.461, allocations: 14.25 MB / 0.8411 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004848/3.465, allocations: 1.115 MB / 0.8422 GB, free: 75.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002703/3.468, allocations: 60.58 kB / 0.8422 GB, free: 75.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006473/3.475, allocations: 230.1 kB / 0.8424 GB, free: 75.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001605/3.476, allocations: 229.9 kB / 0.8427 GB, free: 75.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005495/3.477, allocations: 95.08 kB / 0.8428 GB, free: 75.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01116/3.488, allocations: 3.785 MB / 0.8464 GB, free: 74.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.91e-07/3.488, allocations: 6.031 kB / 0.8465 GB, free: 74.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01301/3.501, allocations: 1.853 MB / 0.8483 GB, free: 74.86 MB / 378.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.001452/3.503, allocations: 227.8 kB / 0.8485 GB, free: 74.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0248/3.528, allocations: 9.726 MB / 0.858 GB, free: 73.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/3.528, allocations: 0 / 0.858 GB, free: 73.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01013/3.538, allocations: 3.792 MB / 0.8617 GB, free: 71.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006887/3.545, allocations: 0.715 MB / 0.8624 GB, free: 71.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04817/3.593, allocations: 19.17 MB / 0.8811 GB, free: 62.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01271/3.606, allocations: 5.006 MB / 0.886 GB, free: 60.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002845/3.609, allocations: 455.7 kB / 0.8864 GB, free: 60.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.143e-06/3.609, allocations: 0 / 0.8864 GB, free: 60.68 MB / 378.7 MB Notification: Performance of Templates: time 0.5799/4.189, allocations: 146.1 MB / 1.029 GB, free: 55.27 MB / 394.7 MB