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.LineForceWithMass.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithMass,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.LineForceWithMass") Notification: Performance of loadModel(ModelicaTest): time 2.021/2.021, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.647e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2597, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.4515, allocations: 97.35 MB / 417.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.4518, allocations: 75.95 kB / 417.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6028/1.055, allocations: 108.3 MB / 0.5134 GB, free: 47.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.202e-06/1.055, allocations: 0 / 0.5134 GB, free: 47.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003353/1.055, allocations: 108 kB / 0.5135 GB, free: 47.62 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1935 * Number of variables: 1935 Notification: Performance of Generate backend data structure: time 0.01894/1.074, allocations: 5.865 MB / 0.5192 GB, free: 41.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.074, allocations: 12.03 kB / 0.5192 GB, free: 41.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03375/1.108, allocations: 6.888 MB / 0.526 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02016/1.128, allocations: 7.07 MB / 0.5329 GB, free: 27.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002969/1.128, allocations: 176 kB / 0.533 GB, free: 27.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002198/1.131, allocations: 323.8 kB / 0.5333 GB, free: 27.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01666/1.147, allocations: 8.101 MB / 0.5412 GB, free: 19.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/1.173, allocations: 12.03 MB / 0.553 GB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003076/1.173, allocations: 71.41 kB / 0.5531 GB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001814/1.175, allocations: 36 kB / 0.5531 GB, free: 5.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002168/1.177, allocations: 1.352 MB / 0.5544 GB, free: 4.395 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3488/1.526, allocations: 60.58 MB / 0.6136 GB, free: 51.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006743/1.533, allocations: 4.362 MB / 0.6178 GB, free: 51.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004762/1.537, allocations: 3.05 MB / 0.6208 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02347/1.561, allocations: 12.37 MB / 0.6329 GB, free: 48.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/1.561, allocations: 63.86 kB / 0.633 GB, free: 48.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=226): time 6.512e-06/1.561, allocations: 2.594 kB / 0.633 GB, free: 48.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=264): time 0.078/1.639, allocations: 24.83 MB / 0.6572 GB, free: 39.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/1.639, allocations: 265.7 kB / 0.6575 GB, free: 39.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006995/1.646, allocations: 3.851 MB / 0.6612 GB, free: 37.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004701/1.647, allocations: 29.08 kB / 0.6612 GB, free: 37.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002496/1.649, allocations: 3.925 MB / 0.6651 GB, free: 34.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.65, allocations: 0.9582 MB / 0.666 GB, free: 33.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005858/1.651, allocations: 0 / 0.666 GB, free: 33.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000444/1.651, allocations: 0.6334 MB / 0.6666 GB, free: 33.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004598/1.656, allocations: 2.431 MB / 0.669 GB, free: 32.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007497/1.663, allocations: 6.876 MB / 0.6757 GB, free: 25.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0073/1.671, allocations: 4.042 MB / 0.6797 GB, free: 22.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001289/1.671, allocations: 44 kB / 0.6797 GB, free: 21.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=993) (initialization): time 0.02005/1.691, allocations: 8.636 MB / 0.6881 GB, free: 14.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.691, allocations: 72.97 kB / 0.6882 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/1.691, allocations: 156 kB / 0.6884 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/1.693, allocations: 0.5891 MB / 0.6889 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007314/1.7, allocations: 1.795 MB / 0.6907 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006987/1.707, allocations: 5.418 MB / 0.696 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007213/1.715, allocations: 261 kB / 0.6962 GB, free: 7.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.716, allocations: 460.6 kB / 0.6967 GB, free: 6.727 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * Number of states: 0 () * Number of discrete variables: 54 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (943): * Single equations (assignments): 938 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001316/1.718, allocations: 0.5095 MB / 0.6972 GB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009534/1.718, allocations: 442.3 kB / 0.6976 GB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007954/1.726, allocations: 3.777 MB / 0.7013 GB, free: 2.633 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.923e-05/1.727, allocations: 28 kB / 0.7013 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/1.727, allocations: 8 kB / 0.7013 GB, free: 2.598 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.277e-05/1.727, allocations: 18.67 kB / 0.7013 GB, free: 2.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02639/1.753, allocations: 9.141 MB / 0.7103 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.197e-05/1.753, allocations: 4 kB / 0.7103 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/1.756, allocations: 467.7 kB / 0.7107 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/1.758, allocations: 339 kB / 0.711 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004138/1.758, allocations: 15.75 kB / 0.711 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007517/1.766, allocations: 4.744 MB / 0.7157 GB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.109e-06/1.766, allocations: 3.938 kB / 0.7157 GB, free: 6.371 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/1.78, allocations: 6.9 MB / 0.7224 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00272/1.783, allocations: 0.7821 MB / 0.7232 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.784, allocations: 7.75 kB / 0.7232 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003202/1.787, allocations: 126.5 kB / 0.7233 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006691/1.788, allocations: 136 kB / 0.7234 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003097/1.788, allocations: 67.94 kB / 0.7235 GB, free: 15.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006428/1.795, allocations: 2.592 MB / 0.726 GB, free: 12.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.188e-06/1.795, allocations: 0 / 0.726 GB, free: 12.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008867/1.804, allocations: 1.105 MB / 0.7271 GB, free: 11.85 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008036/1.805, allocations: 152.4 kB / 0.7273 GB, free: 11.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01319/1.818, allocations: 6.069 MB / 0.7332 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.668e-06/1.818, allocations: 0 / 0.7332 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004401/1.822, allocations: 2.123 MB / 0.7353 GB, free: 4.211 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003443/1.826, allocations: 471.1 kB / 0.7357 GB, free: 3.812 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02748/1.853, allocations: 10.57 MB / 0.746 GB, free: 10.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009782/1.863, allocations: 4.221 MB / 0.7502 GB, free: 7.094 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002016/1.865, allocations: 363.4 kB / 0.7505 GB, free: 6.738 MB / 458.7 MB Notification: Performance of SimCode: time 1.928e-06/1.865, allocations: 0 / 0.7505 GB, free: 6.738 MB / 458.7 MB Notification: Performance of Templates: time 0.4182/2.283, allocations: 115.7 MB / 0.8635 GB, free: 59.55 MB / 458.7 MB