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/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.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.933/1.933, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004333, allocations: 12 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3115, allocations: 48.71 MB / 331.2 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.07374/0.3853, allocations: 52.38 MB / 383.6 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03364/0.419, allocations: 12.54 MB / 396.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0117/0.4307, allocations: 271.3 kB / 396.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008439/0.4392, allocations: 2.636 MB / 399 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02634/0.4656, allocations: 7.539 MB / 406.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00466/0.4703, allocations: 1.018 MB / 407.6 MB, free: 1.965 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03874/0.5091, allocations: 18.08 MB / 425.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01057/0.5197, allocations: 5.525 MB / 431.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003461/0.5232, allocations: 1.515 MB / 432.7 MB, free: 8.762 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003978/0.5272, allocations: 2.029 MB / 434.7 MB, free: 6.727 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.5283, allocations: 200 kB / 434.9 MB, free: 6.531 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003341/0.5317, allocations: 1.174 MB / 436.1 MB, free: 5.355 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003555/0.5353, allocations: 2.217 MB / 438.3 MB, free: 3.133 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001935/0.5373, allocations: 1.1 MB / 439.4 MB, free: 2.023 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.5489, allocations: 7.548 MB / 447 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.701e-06/0.549, allocations: 0 / 447 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.4e-06/0.549, allocations: 0 / 447 MB, free: 10.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001923/0.5492, allocations: 4 kB / 447 MB, free: 10.45 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.01896/0.5682, allocations: 6.157 MB / 453.1 MB, free: 4.215 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5682, allocations: 12.03 kB / 453.1 MB, free: 4.203 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1802/0.7485, allocations: 14.69 MB / 467.8 MB, free: 5.488 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01251/0.761, allocations: 4.529 MB / 472.4 MB, free: 0.875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003833/0.7614, allocations: 315.9 kB / 472.7 MB, free: 0.5625 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001557/0.763, allocations: 415.7 kB / 473.1 MB, free: 160 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2557/1.019, allocations: 13.95 MB / 487 MB, free: 111.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002208/1.019, allocations: 56.89 kB / 487.1 MB, free: 111.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009609/1.02, allocations: 201 kB / 487.3 MB, free: 111.6 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004217/1.024, allocations: 2.407 MB / 489.7 MB, free: 110.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0303/1.055, allocations: 11.75 MB / 0.4897 GB, free: 102.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07012/1.125, allocations: 53.24 MB / 0.5417 GB, free: 48.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02043/1.145, allocations: 5.826 MB / 0.5474 GB, free: 42.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02581/1.171, allocations: 14.95 MB / 0.562 GB, free: 26.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/1.171, allocations: 56.56 kB / 0.562 GB, free: 26.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=226): time 6.696e-06/1.171, allocations: 0 / 0.562 GB, free: 26.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=263): time 0.1037/1.275, allocations: 26.65 MB / 0.588 GB, free: 15.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001872/1.275, allocations: 265.3 kB / 0.5883 GB, free: 15.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/1.286, allocations: 5.292 MB / 0.5935 GB, free: 10.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000477/1.287, allocations: 69.7 kB / 0.5935 GB, free: 10.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004015/1.291, allocations: 3.796 MB / 0.5972 GB, free: 6.414 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001535/1.292, allocations: 0.9788 MB / 0.5982 GB, free: 5.441 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005792/1.293, allocations: 148 kB / 0.5983 GB, free: 5.297 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006297/1.293, allocations: 0.6168 MB / 0.5989 GB, free: 4.672 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006303/1.3, allocations: 2.7 MB / 0.6016 GB, free: 1.969 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01072/1.31, allocations: 7.027 MB / 0.6084 GB, free: 8.812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009173/1.32, allocations: 4.232 MB / 0.6126 GB, free: 4.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.32, allocations: 40 kB / 0.6126 GB, free: 4.531 MB / 426.7 MB Notification: Performance of matching and sorting (n=959) (initialization): time 0.02463/1.344, allocations: 9.835 MB / 0.6222 GB, free: 10.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/1.345, allocations: 68 kB / 0.6223 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002333/1.345, allocations: 152 kB / 0.6224 GB, free: 10.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/1.347, allocations: 0.7273 MB / 0.6231 GB, free: 9.742 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008037/1.356, allocations: 1.762 MB / 0.6248 GB, free: 7.977 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/1.367, allocations: 6.458 MB / 0.6311 GB, free: 1.273 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006887/1.374, allocations: 411.3 kB / 0.6315 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.375, allocations: 436 kB / 0.632 GB, free: 456 kB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 690 * 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 (909): * Single equations (assignments): 904 * 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.2412/1.616, allocations: 2.623 MB / 0.6345 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009914/1.617, allocations: 466.2 kB / 0.635 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009689/1.627, allocations: 4.368 MB / 0.6392 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.735e-05/1.627, allocations: 28.17 kB / 0.6393 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/1.627, allocations: 4.969 kB / 0.6393 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.436e-05/1.627, allocations: 12.45 kB / 0.6393 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02569/1.653, allocations: 10.86 MB / 0.6499 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.376e-05/1.653, allocations: 3.344 kB / 0.6499 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003519/1.656, allocations: 499.5 kB / 0.6504 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002004/1.658, allocations: 494.2 kB / 0.6508 GB, free: 138.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004326/1.659, allocations: 46.89 kB / 0.6509 GB, free: 138.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008058/1.667, allocations: 5.811 MB / 0.6565 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.24e-06/1.667, allocations: 3.781 kB / 0.6565 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/1.681, allocations: 7.574 MB / 0.6639 GB, free: 131.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002508/1.684, allocations: 0.8618 MB / 0.6648 GB, free: 131.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009771/1.685, allocations: 43.95 kB / 0.6648 GB, free: 131.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003013/1.688, allocations: 164.2 kB / 0.665 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006063/1.688, allocations: 148.6 kB / 0.6651 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002635/1.689, allocations: 69.89 kB / 0.6652 GB, free: 131.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006809/1.696, allocations: 3.355 MB / 0.6685 GB, free: 129.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.477e-06/1.696, allocations: 0 / 0.6685 GB, free: 129.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007524/1.703, allocations: 1.318 MB / 0.6698 GB, free: 129.8 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 (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.0007885/1.704, allocations: 200.4 kB / 0.6699 GB, free: 129.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01208/1.716, allocations: 6.715 MB / 0.6765 GB, free: 123.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/1.716, allocations: 2.906 kB / 0.6765 GB, free: 123.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004037/1.72, allocations: 2.363 MB / 0.6788 GB, free: 121.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003307/1.723, allocations: 0.5681 MB / 0.6794 GB, free: 120.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/1.749, allocations: 15.22 MB / 0.6942 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007163/1.756, allocations: 4.225 MB / 0.6984 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/1.758, allocations: 379.4 kB / 0.6987 GB, free: 101.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.718e-06/1.758, allocations: 0 / 0.6987 GB, free: 101.2 MB / 442.7 MB Notification: Performance of Templates: time 0.4012/2.159, allocations: 118.9 MB / 0.8148 GB, free: 132.2 MB / 442.7 MB