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.ForceWithTwoMasses2.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.ForceWithTwoMasses2,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.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 1.85/1.85, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004447/0.0004449, allocations: 16 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2863, allocations: 48.7 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.07989/0.3662, allocations: 60.03 MB / 391.2 MB, free: 2.367 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03934/0.4056, allocations: 14.15 MB / 405.4 MB, free: 4.176 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01417/0.4198, allocations: 307.2 kB / 405.7 MB, free: 3.875 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00936/0.4292, allocations: 3.017 MB / 408.7 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02859/0.4579, allocations: 8.606 MB / 417.3 MB, free: 8.215 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005132/0.4631, allocations: 1.283 MB / 418.6 MB, free: 6.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.04145/0.5045, allocations: 19.17 MB / 437.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01148/0.5161, allocations: 6.333 MB / 444.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00366/0.5198, allocations: 1.869 MB / 445.9 MB, free: 11.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004658/0.5245, allocations: 2.676 MB / 448.6 MB, free: 8.781 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001011/0.5255, allocations: 244 kB / 448.9 MB, free: 8.543 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00316/0.5287, allocations: 1.217 MB / 450.1 MB, free: 7.324 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003762/0.5325, allocations: 2.77 MB / 452.8 MB, free: 4.547 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001931/0.5344, allocations: 1.314 MB / 454.2 MB, free: 3.223 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.5474, allocations: 8.865 MB / 463 MB, free: 10.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.551e-06/0.5475, allocations: 0 / 463 MB, free: 10.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.457e-06/0.5475, allocations: 0 / 463 MB, free: 10.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001801/0.5477, allocations: 0 / 463 MB, free: 10.34 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.04146/0.5891, allocations: 7.435 MB / 470.5 MB, free: 2.816 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.691e-05/0.5892, allocations: 12.03 kB / 470.5 MB, free: 2.805 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4269/1.016, allocations: 15.11 MB / 485.6 MB, free: 114.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01431/1.031, allocations: 6.193 MB / 491.8 MB, free: 111 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/1.031, allocations: 368.5 kB / 492.1 MB, free: 110.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/1.032, allocations: 0.5074 MB / 492.6 MB, free: 110.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03091/1.063, allocations: 16.4 MB / 0.4971 GB, free: 93.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002238/1.064, allocations: 83.3 kB / 0.4972 GB, free: 93.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000765/1.064, allocations: 235.1 kB / 0.4974 GB, free: 92.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004057/1.068, allocations: 2.807 MB / 0.5002 GB, free: 90.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03197/1.1, allocations: 13.66 MB / 0.5135 GB, free: 76.4 MB / 394.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.08214/1.183, allocations: 64.31 MB / 0.5763 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02904/1.212, allocations: 7.824 MB / 0.5839 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03976/1.251, allocations: 18.85 MB / 0.6023 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.324e-05/1.252, allocations: 64.55 kB / 0.6024 GB, free: 15.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.222e-06/1.252, allocations: 0 / 0.6024 GB, free: 15.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=360): time 0.4496/1.701, allocations: 50.08 MB / 0.6513 GB, free: 143.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.298e-05/1.701, allocations: 274 kB / 0.6516 GB, free: 143.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01154/1.713, allocations: 6.546 MB / 0.658 GB, free: 140.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006907/1.714, allocations: 81.2 kB / 0.658 GB, free: 140.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003084/1.717, allocations: 4.535 MB / 0.6625 GB, free: 137.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001677/1.718, allocations: 1.326 MB / 0.6638 GB, free: 136.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007829/1.719, allocations: 182.3 kB / 0.6639 GB, free: 136.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005032/1.72, allocations: 0.6967 MB / 0.6646 GB, free: 135.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008148/1.728, allocations: 3.885 MB / 0.6684 GB, free: 134.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0106/1.739, allocations: 9.098 MB / 0.6773 GB, free: 125.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.749, allocations: 5.746 MB / 0.6829 GB, free: 121.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/1.749, allocations: 52 kB / 0.683 GB, free: 121.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.04134/1.791, allocations: 16.66 MB / 0.6992 GB, free: 104.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/1.791, allocations: 84 kB / 0.6993 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000209/1.791, allocations: 180.8 kB / 0.6995 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01639/1.808, allocations: 4.219 MB / 0.7036 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008358/1.816, allocations: 2.047 MB / 0.7056 GB, free: 98.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04328/1.859, allocations: 23.98 MB / 0.729 GB, free: 74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008687/1.868, allocations: 0.5072 MB / 0.7295 GB, free: 73.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00149/1.87, allocations: 0.5362 MB / 0.73 GB, free: 72.96 MB / 442.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 (1076): * Single equations (assignments): 1071 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006348/1.876, allocations: 3.106 MB / 0.7331 GB, free: 69.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/1.877, allocations: 0.5746 MB / 0.7336 GB, free: 69.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02677/1.904, allocations: 10.09 MB / 0.7435 GB, free: 59.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-05/1.904, allocations: 42.11 kB / 0.7435 GB, free: 59.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.452e-05/1.904, allocations: 16 kB / 0.7435 GB, free: 59.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.467e-05/1.904, allocations: 15.94 kB / 0.7436 GB, free: 59.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04971/1.954, allocations: 19.75 MB / 0.7628 GB, free: 39.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.265e-05/1.954, allocations: 0 / 0.7628 GB, free: 39.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00329/1.957, allocations: 0.5188 MB / 0.7633 GB, free: 38.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01525/1.973, allocations: 3.723 MB / 0.767 GB, free: 34.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007171/1.973, allocations: 59.98 kB / 0.767 GB, free: 34.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03816/2.012, allocations: 20.83 MB / 0.7874 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.004e-06/2.012, allocations: 3.938 kB / 0.7874 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2784/2.29, allocations: 14.62 MB / 0.8017 GB, free: 132.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003796/2.294, allocations: 1.152 MB / 0.8028 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001542/2.295, allocations: 58.75 kB / 0.8028 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004316/2.3, allocations: 220.2 kB / 0.8031 GB, free: 131.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001141/2.301, allocations: 221.3 kB / 0.8033 GB, free: 131.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004208/2.301, allocations: 94.39 kB / 0.8034 GB, free: 131.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008716/2.31, allocations: 4.164 MB / 0.8074 GB, free: 130.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.222e-06/2.31, allocations: 3.75 kB / 0.8074 GB, free: 130.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01025/2.32, allocations: 1.861 MB / 0.8092 GB, free: 130.1 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 (263): * Single equations (assignments): 258 * 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.001078/2.322, allocations: 229.5 kB / 0.8095 GB, free: 129.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01918/2.341, allocations: 9.878 MB / 0.8191 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.671e-06/2.341, allocations: 0 / 0.8191 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007983/2.349, allocations: 3.891 MB / 0.8229 GB, free: 124.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004601/2.353, allocations: 0.7185 MB / 0.8236 GB, free: 124.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03411/2.388, allocations: 19.26 MB / 0.8424 GB, free: 110.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00854/2.396, allocations: 5.005 MB / 0.8473 GB, free: 106 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002073/2.398, allocations: 455.4 kB / 0.8477 GB, free: 105.6 MB / 442.7 MB Notification: Performance of SimCode: time 2.278e-06/2.398, allocations: 0 / 0.8477 GB, free: 105.6 MB / 442.7 MB Notification: Performance of Templates: time 0.4412/2.839, allocations: 146.6 MB / 0.9909 GB, free: 132.7 MB / 458.7 MB