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.LineForceWithMass.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.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 1.943/1.943, allocations: 209.2 MB / 225.4 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006637/0.0006641, allocations: 12 kB / 283.1 MB, free: 9.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1303, allocations: 48.71 MB / 331.8 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5041/0.6344, allocations: 98.09 MB / 429.9 MB, free: 3.074 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.6348, allocations: 75.97 kB / 430 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9055/1.54, allocations: 111.4 MB / 0.5286 GB, free: 89.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.54, allocations: 0 / 0.5286 GB, free: 89.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000403/1.541, allocations: 113.4 kB / 0.5287 GB, free: 89.68 MB / 410.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.02703/1.568, allocations: 6.35 MB / 0.5349 GB, free: 87.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/1.568, allocations: 11.45 kB / 0.535 GB, free: 87.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04959/1.617, allocations: 6.902 MB / 0.5417 GB, free: 85.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02609/1.644, allocations: 7.093 MB / 0.5486 GB, free: 81.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005258/1.644, allocations: 411.8 kB / 0.549 GB, free: 81.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003185/1.647, allocations: 0.5378 MB / 0.5495 GB, free: 81.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04431/1.692, allocations: 14.15 MB / 0.5634 GB, free: 68.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004087/1.692, allocations: 79.14 kB / 0.5634 GB, free: 68.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00305/1.695, allocations: 262.2 kB / 0.5637 GB, free: 68.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002953/1.698, allocations: 1.355 MB / 0.565 GB, free: 66.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03932/1.738, allocations: 11.72 MB / 0.5765 GB, free: 55.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09948/1.837, allocations: 60.62 MB / 0.6357 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03029/1.868, allocations: 5.804 MB / 0.6413 GB, free: 2.934 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3513/2.219, allocations: 14.73 MB / 0.6557 GB, free: 96.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/2.219, allocations: 59.77 kB / 0.6558 GB, free: 96.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 8.305e-06/2.219, allocations: 0 / 0.6558 GB, free: 96.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=263): time 0.1507/2.37, allocations: 25.84 MB / 0.681 GB, free: 90.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/2.37, allocations: 256.4 kB / 0.6813 GB, free: 89.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01328/2.383, allocations: 5.002 MB / 0.6861 GB, free: 88.22 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006752/2.384, allocations: 68.95 kB / 0.6862 GB, free: 88.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003549/2.388, allocations: 3.812 MB / 0.6899 GB, free: 85.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001729/2.389, allocations: 0.9802 MB / 0.6909 GB, free: 84.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/2.391, allocations: 151.7 kB / 0.691 GB, free: 84.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008311/2.392, allocations: 0.6215 MB / 0.6916 GB, free: 83.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007219/2.399, allocations: 2.573 MB / 0.6942 GB, free: 83.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/2.409, allocations: 6.923 MB / 0.7009 GB, free: 76.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/2.419, allocations: 4.102 MB / 0.7049 GB, free: 74.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001979/2.419, allocations: 47.06 kB / 0.705 GB, free: 74.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02615/2.445, allocations: 9.514 MB / 0.7143 GB, free: 71.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/2.446, allocations: 71.73 kB / 0.7143 GB, free: 71.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00027/2.446, allocations: 152.8 kB / 0.7145 GB, free: 71.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002431/2.448, allocations: 0.5899 MB / 0.715 GB, free: 71.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01161/2.46, allocations: 1.73 MB / 0.7167 GB, free: 70.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00923/2.469, allocations: 5.721 MB / 0.7223 GB, free: 65.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008535/2.478, allocations: 398.9 kB / 0.7227 GB, free: 65.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001743/2.48, allocations: 443.2 kB / 0.7231 GB, free: 64.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (912): * Single equations (assignments): 907 * 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.007706/2.487, allocations: 2.63 MB / 0.7257 GB, free: 62.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/2.489, allocations: 477.8 kB / 0.7261 GB, free: 61.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/2.501, allocations: 4.005 MB / 0.7301 GB, free: 58.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-05/2.501, allocations: 32.5 kB / 0.7301 GB, free: 58.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/2.501, allocations: 7.234 kB / 0.7301 GB, free: 58.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-05/2.501, allocations: 14.22 kB / 0.7301 GB, free: 58.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02998/2.531, allocations: 10.28 MB / 0.7401 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.283e-05/2.531, allocations: 1.375 kB / 0.7401 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004584/2.536, allocations: 468.5 kB / 0.7406 GB, free: 49.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001717/2.538, allocations: 345.8 kB / 0.7409 GB, free: 49.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005234/2.538, allocations: 44 kB / 0.741 GB, free: 49.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007574/2.546, allocations: 5.074 MB / 0.7459 GB, free: 44.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/2.546, allocations: 0 / 0.7459 GB, free: 44.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01592/2.562, allocations: 7.05 MB / 0.7528 GB, free: 38.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003143/2.565, allocations: 0.8229 MB / 0.7536 GB, free: 37.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001602/2.567, allocations: 43.95 kB / 0.7537 GB, free: 37.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004233/2.571, allocations: 161.9 kB / 0.7538 GB, free: 37.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007274/2.572, allocations: 137.9 kB / 0.7539 GB, free: 37.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002801/2.572, allocations: 71.88 kB / 0.754 GB, free: 37.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007829/2.58, allocations: 3.12 MB / 0.7571 GB, free: 34.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/2.58, allocations: 0 / 0.7571 GB, free: 34.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008818/2.589, allocations: 1.292 MB / 0.7583 GB, free: 33.39 MB / 426.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 (224): * Single equations (assignments): 219 * 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.0009786/2.59, allocations: 189.2 kB / 0.7585 GB, free: 33.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01429/2.604, allocations: 6.446 MB / 0.7648 GB, free: 27.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.477e-06/2.604, allocations: 4 kB / 0.7648 GB, free: 27.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004738/2.609, allocations: 2.215 MB / 0.767 GB, free: 25.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004758/2.614, allocations: 0.5476 MB / 0.7675 GB, free: 25.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03391/2.648, allocations: 15.05 MB / 0.7822 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01289/2.661, allocations: 4.228 MB / 0.7863 GB, free: 5.871 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/2.663, allocations: 375.4 kB / 0.7867 GB, free: 5.504 MB / 426.7 MB Notification: Performance of SimCode: time 1.433e-06/2.663, allocations: 0 / 0.7867 GB, free: 5.504 MB / 426.7 MB Notification: Performance of Templates: time 0.5578/3.221, allocations: 118.2 MB / 0.9021 GB, free: 48.98 MB / 442.7 MB