Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) 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.761/1.761, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000737/0.0007375, allocations: 12 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09752, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.3283/0.4259, allocations: 60.02 MB / 332 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0552/0.4811, allocations: 14.14 MB / 346.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02061/0.5018, allocations: 307.2 kB / 346.4 MB, free: 2.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01393/0.5158, allocations: 3.013 MB / 349.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0402/0.556, allocations: 8.61 MB / 358 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00556/0.5617, allocations: 1.283 MB / 359.3 MB, free: 5.965 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.04098/0.6027, allocations: 19.17 MB / 378.5 MB, free: 2.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01227/0.615, allocations: 6.341 MB / 384.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004396/0.6194, allocations: 1.869 MB / 386.7 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005289/0.6248, allocations: 2.684 MB / 389.4 MB, free: 7.797 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001633/0.6265, allocations: 251.9 kB / 389.6 MB, free: 7.551 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003917/0.6304, allocations: 1.213 MB / 390.8 MB, free: 6.336 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004681/0.6351, allocations: 2.778 MB / 393.6 MB, free: 3.551 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002657/0.6378, allocations: 1.314 MB / 394.9 MB, free: 2.227 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.652, allocations: 8.884 MB / 403.8 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.836e-06/0.6521, allocations: 3.938 kB / 403.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.6521, allocations: 0 / 403.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000243/0.6524, allocations: 0 / 403.8 MB, free: 9.316 MB / 330.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.02287/0.6752, allocations: 7.446 MB / 411.3 MB, free: 1.785 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.6753, allocations: 8.031 kB / 411.3 MB, free: 1.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1841/0.8594, allocations: 15.1 MB / 426.4 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01748/0.8769, allocations: 6.206 MB / 432.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005116/0.8775, allocations: 369.4 kB / 432.9 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002335/0.8798, allocations: 0.515 MB / 433.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2351/1.115, allocations: 16.39 MB / 449.8 MB, free: 121.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003405/1.115, allocations: 84.14 kB / 449.9 MB, free: 121.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001576/1.117, allocations: 236.4 kB / 450.2 MB, free: 121.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005505/1.122, allocations: 2.805 MB / 453 MB, free: 121.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03677/1.159, allocations: 13.69 MB / 466.6 MB, free: 116.1 MB / 362.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.08666/1.246, allocations: 64.4 MB / 0.5186 GB, free: 53.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0278/1.274, allocations: 7.86 MB / 0.5263 GB, free: 45.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03432/1.308, allocations: 18.92 MB / 0.5447 GB, free: 26.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/1.308, allocations: 68.56 kB / 0.5448 GB, free: 26.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 8.037e-06/1.308, allocations: 0 / 0.5448 GB, free: 26.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.4218/1.73, allocations: 53.13 MB / 0.5967 GB, free: 107.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/1.73, allocations: 272.8 kB / 0.597 GB, free: 107.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01231/1.743, allocations: 6.55 MB / 0.6034 GB, free: 105 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008154/1.743, allocations: 81.14 kB / 0.6034 GB, free: 105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003136/1.747, allocations: 4.526 MB / 0.6079 GB, free: 101.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001726/1.748, allocations: 1.346 MB / 0.6092 GB, free: 100 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009315/1.749, allocations: 187.1 kB / 0.6093 GB, free: 99.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005753/1.75, allocations: 0.6986 MB / 0.61 GB, free: 99.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008113/1.758, allocations: 3.918 MB / 0.6139 GB, free: 96.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/1.769, allocations: 9.133 MB / 0.6228 GB, free: 84.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/1.779, allocations: 5.782 MB / 0.6284 GB, free: 78.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001332/1.779, allocations: 52 kB / 0.6285 GB, free: 78.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04145/1.821, allocations: 16.7 MB / 0.6448 GB, free: 62.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001779/1.821, allocations: 84 kB / 0.6449 GB, free: 61.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002141/1.821, allocations: 180 kB / 0.645 GB, free: 61.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01595/1.837, allocations: 4.185 MB / 0.6491 GB, free: 57.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008409/1.846, allocations: 2.055 MB / 0.6511 GB, free: 55.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0444/1.89, allocations: 23.97 MB / 0.6745 GB, free: 31.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008808/1.899, allocations: 0.5039 MB / 0.675 GB, free: 30.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001593/1.901, allocations: 0.5359 MB / 0.6755 GB, free: 30.27 MB / 362.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.006825/1.907, allocations: 3.12 MB / 0.6786 GB, free: 27.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001438/1.909, allocations: 0.5708 MB / 0.6791 GB, free: 26.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02739/1.936, allocations: 10.12 MB / 0.689 GB, free: 16.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.269e-05/1.936, allocations: 40 kB / 0.6891 GB, free: 16.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.461e-05/1.937, allocations: 19.98 kB / 0.6891 GB, free: 16.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.252e-05/1.937, allocations: 19.88 kB / 0.6891 GB, free: 16.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2637/2.2, allocations: 19.8 MB / 0.7084 GB, free: 99.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.751e-05/2.2, allocations: 5.375 kB / 0.7084 GB, free: 99.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003636/2.204, allocations: 0.5326 MB / 0.709 GB, free: 99.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01619/2.22, allocations: 3.671 MB / 0.7125 GB, free: 98.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008797/2.221, allocations: 63.7 kB / 0.7126 GB, free: 98.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04184/2.263, allocations: 20.81 MB / 0.7329 GB, free: 90.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.422e-06/2.263, allocations: 0 / 0.7329 GB, free: 90.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03702/2.3, allocations: 14.71 MB / 0.7473 GB, free: 81.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003495/2.304, allocations: 1.157 MB / 0.7484 GB, free: 80.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/2.305, allocations: 59.98 kB / 0.7485 GB, free: 80.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004311/2.31, allocations: 212.4 kB / 0.7487 GB, free: 80.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/2.311, allocations: 227.3 kB / 0.7489 GB, free: 80.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000398/2.311, allocations: 95.98 kB / 0.749 GB, free: 80.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00798/2.319, allocations: 4.159 MB / 0.7531 GB, free: 76.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.103e-06/2.319, allocations: 0 / 0.7531 GB, free: 76.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01016/2.329, allocations: 1.873 MB / 0.7549 GB, free: 74.16 MB / 362.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.00112/2.331, allocations: 245.5 kB / 0.7551 GB, free: 73.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01833/2.349, allocations: 9.975 MB / 0.7649 GB, free: 64.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.846e-06/2.349, allocations: 3.125 kB / 0.7649 GB, free: 64.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007645/2.357, allocations: 3.928 MB / 0.7687 GB, free: 60.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004792/2.361, allocations: 0.7314 MB / 0.7694 GB, free: 59.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03611/2.398, allocations: 19.36 MB / 0.7883 GB, free: 40.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009282/2.407, allocations: 5.007 MB / 0.7932 GB, free: 35.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002201/2.409, allocations: 461.7 kB / 0.7936 GB, free: 34.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.659e-06/2.409, allocations: 0 / 0.7936 GB, free: 34.64 MB / 362.7 MB Notification: Performance of Templates: time 0.4236/2.833, allocations: 147 MB / 0.9372 GB, free: 24.1 MB / 378.7 MB