Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.141/2.141, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007771/0.0007774, allocations: 12 kB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3041, allocations: 54.87 MB / 369.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.08304/0.3872, allocations: 60.07 MB / 429.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03752/0.4248, allocations: 14.18 MB / 443.4 MB, free: 136 kB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01185/0.4367, allocations: 307.3 kB / 443.7 MB, free: 15.83 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00958/0.4463, allocations: 3.017 MB / 446.8 MB, free: 12.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02871/0.4751, allocations: 8.606 MB / 455.4 MB, free: 4.172 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005215/0.4803, allocations: 1.279 MB / 456.6 MB, free: 2.891 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3195/0.7999, allocations: 19.18 MB / 475.8 MB, free: 19.32 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01166/0.8116, allocations: 6.338 MB / 482.2 MB, free: 18.84 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003837/0.8155, allocations: 1.872 MB / 484 MB, free: 18.84 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004513/0.82, allocations: 2.686 MB / 486.7 MB, free: 18.83 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001677/0.8217, allocations: 247.4 kB / 487 MB, free: 18.83 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/0.8255, allocations: 1.214 MB / 488.2 MB, free: 18.83 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003695/0.8293, allocations: 2.779 MB / 491 MB, free: 18.83 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002339/0.8316, allocations: 1.316 MB / 492.3 MB, free: 18.8 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.8428, allocations: 8.89 MB / 0.4894 GB, free: 16.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.196e-06/0.8429, allocations: 0 / 0.4894 GB, free: 16.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.868e-06/0.8429, allocations: 0 / 0.4894 GB, free: 16.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003015/0.8432, allocations: 0 / 0.4894 GB, free: 16.38 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.02063/0.8638, allocations: 7.451 MB / 0.4967 GB, free: 12.13 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.8639, allocations: 9.156 kB / 0.4967 GB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1796/1.043, allocations: 15.1 MB / 0.5114 GB, free: 2.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01597/1.059, allocations: 6.203 MB / 0.5175 GB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004339/1.06, allocations: 366.4 kB / 0.5178 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002166/1.062, allocations: 0.5113 MB / 0.5183 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04039/1.103, allocations: 16.42 MB / 0.5344 GB, free: 160 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003099/1.103, allocations: 80.09 kB / 0.5345 GB, free: 112 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001441/1.104, allocations: 238.8 kB / 0.5347 GB, free: 40 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00554/1.11, allocations: 2.807 MB / 0.5374 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03789/1.148, allocations: 13.69 MB / 0.5508 GB, free: 4.043 MB / 426.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.1087/1.257, allocations: 64.42 MB / 0.6137 GB, free: 11.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0306/1.287, allocations: 7.864 MB / 0.6214 GB, free: 3.707 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04333/1.331, allocations: 18.92 MB / 0.6399 GB, free: 320 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.717e-05/1.331, allocations: 66.8 kB / 0.6399 GB, free: 244 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=286): time 7.671e-06/1.331, allocations: 0 / 0.6399 GB, free: 244 kB / 0.4948 GB Notification: Performance of matching and sorting (n=367): time 0.5343/1.865, allocations: 53.12 MB / 0.6918 GB, free: 189 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/1.865, allocations: 273.7 kB / 0.6921 GB, free: 188.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/1.876, allocations: 6.543 MB / 0.6985 GB, free: 182.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007656/1.877, allocations: 82.72 kB / 0.6985 GB, free: 182.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003077/1.88, allocations: 4.537 MB / 0.703 GB, free: 177.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001852/1.882, allocations: 1.347 MB / 0.7043 GB, free: 176.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008305/1.883, allocations: 188 kB / 0.7045 GB, free: 176.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005207/1.884, allocations: 0.6954 MB / 0.7051 GB, free: 175.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007882/1.892, allocations: 3.914 MB / 0.709 GB, free: 171.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/1.902, allocations: 9.137 MB / 0.7179 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01037/1.912, allocations: 5.783 MB / 0.7235 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/1.913, allocations: 52 kB / 0.7236 GB, free: 154.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04156/1.954, allocations: 16.68 MB / 0.7399 GB, free: 137.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/1.954, allocations: 81.72 kB / 0.74 GB, free: 137.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001948/1.955, allocations: 184.1 kB / 0.7401 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01669/1.971, allocations: 4.187 MB / 0.7442 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008483/1.98, allocations: 2.059 MB / 0.7462 GB, free: 131 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04332/2.023, allocations: 23.97 MB / 0.7696 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008979/2.032, allocations: 0.5072 MB / 0.7701 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/2.034, allocations: 0.5428 MB / 0.7707 GB, free: 105.7 MB / 0.5105 GB 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.007062/2.041, allocations: 3.12 MB / 0.7737 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001346/2.042, allocations: 0.5785 MB / 0.7743 GB, free: 102 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02723/2.07, allocations: 10.11 MB / 0.7841 GB, free: 91.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.784e-05/2.07, allocations: 40 kB / 0.7842 GB, free: 91.76 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-05/2.07, allocations: 20 kB / 0.7842 GB, free: 91.74 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.697e-05/2.07, allocations: 15.94 kB / 0.7842 GB, free: 91.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05003/2.12, allocations: 19.8 MB / 0.8036 GB, free: 71.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.413e-05/2.12, allocations: 4 kB / 0.8036 GB, free: 71.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003393/2.123, allocations: 0.5343 MB / 0.8041 GB, free: 71.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01514/2.139, allocations: 3.669 MB / 0.8077 GB, free: 67.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007931/2.139, allocations: 63.98 kB / 0.8077 GB, free: 67.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03863/2.178, allocations: 20.82 MB / 0.8281 GB, free: 46.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.398e-06/2.178, allocations: 3.984 kB / 0.8281 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03417/2.212, allocations: 14.69 MB / 0.8424 GB, free: 31.67 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003538/2.216, allocations: 1.169 MB / 0.8435 GB, free: 30.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001549/2.217, allocations: 63.95 kB / 0.8436 GB, free: 30.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004276/2.222, allocations: 209.1 kB / 0.8438 GB, free: 30.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/2.223, allocations: 226.2 kB / 0.844 GB, free: 29.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005756/2.224, allocations: 93.23 kB / 0.8441 GB, free: 29.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008184/2.232, allocations: 4.163 MB / 0.8482 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.583e-06/2.232, allocations: 4 kB / 0.8482 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.2869/2.519, allocations: 1.864 MB / 0.85 GB, free: 181.1 MB / 0.5105 GB 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.001207/2.52, allocations: 232 kB / 0.8502 GB, free: 181 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02115/2.541, allocations: 9.973 MB / 0.86 GB, free: 180.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/2.541, allocations: 0 / 0.86 GB, free: 180.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008227/2.55, allocations: 3.945 MB / 0.8638 GB, free: 178.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004546/2.554, allocations: 0.7115 MB / 0.8645 GB, free: 178.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0361/2.59, allocations: 19.37 MB / 0.8834 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009776/2.6, allocations: 5.017 MB / 0.8883 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002259/2.602, allocations: 457 kB / 0.8888 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.92e-06/2.602, allocations: 0 / 0.8888 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.4849/3.087, allocations: 147.1 MB / 1.032 GB, free: 181.6 MB / 0.5105 GB