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.636/1.636, allocations: 171.2 MB / 186.8 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003718, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07181/0.07221, allocations: 38.78 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3289/0.4012, allocations: 91.09 MB / 363.1 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4015, allocations: 91.02 kB / 363.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7419/1.143, allocations: 135.5 MB / 498.7 MB, free: 63.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.273e-06/1.143, allocations: 3.938 kB / 498.7 MB, free: 63.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004012/1.144, allocations: 134.8 kB / 498.9 MB, free: 63.77 MB / 346.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.02483/1.169, allocations: 7.654 MB / 0.4947 GB, free: 56.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/1.169, allocations: 8.031 kB / 0.4947 GB, free: 56.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03877/1.208, allocations: 7.552 MB / 0.502 GB, free: 48.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02687/1.234, allocations: 9.71 MB / 0.5115 GB, free: 38.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005727/1.235, allocations: 489.4 kB / 0.512 GB, free: 38.4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002921/1.238, allocations: 0.6533 MB / 0.5126 GB, free: 37.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04169/1.28, allocations: 16.71 MB / 0.529 GB, free: 19.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005271/1.28, allocations: 99.08 kB / 0.529 GB, free: 19.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002887/1.283, allocations: 311.8 kB / 0.5293 GB, free: 19.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/1.286, allocations: 1.584 MB / 0.5309 GB, free: 17.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0346/1.321, allocations: 13.76 MB / 0.5443 GB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3376/1.658, allocations: 74.32 MB / 0.6169 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02838/1.687, allocations: 7.729 MB / 0.6245 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03745/1.724, allocations: 18.71 MB / 0.6427 GB, free: 28.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/1.725, allocations: 70.38 kB / 0.6428 GB, free: 28.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 7.857e-06/1.725, allocations: 0 / 0.6428 GB, free: 28.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=367): time 0.2264/1.951, allocations: 50.49 MB / 0.6921 GB, free: 6.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002231/1.951, allocations: 269.8 kB / 0.6924 GB, free: 5.746 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0138/1.965, allocations: 5.386 MB / 0.6976 GB, free: 1.211 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008455/1.966, allocations: 81.7 kB / 0.6977 GB, free: 1.125 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00502/1.971, allocations: 4.548 MB / 0.7021 GB, free: 12.99 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002261/1.973, allocations: 1.351 MB / 0.7034 GB, free: 11.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/1.974, allocations: 188 kB / 0.7036 GB, free: 11.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0008147/1.975, allocations: 0.6991 MB / 0.7043 GB, free: 11.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009556/1.985, allocations: 3.808 MB / 0.708 GB, free: 7.352 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2426/2.227, allocations: 8.99 MB / 0.7168 GB, free: 92.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01281/2.24, allocations: 5.67 MB / 0.7223 GB, free: 92.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002899/2.241, allocations: 52.62 kB / 0.7224 GB, free: 92.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.0465/2.287, allocations: 16.49 MB / 0.7385 GB, free: 91.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001676/2.287, allocations: 83.12 kB / 0.7386 GB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/2.288, allocations: 181.7 kB / 0.7388 GB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01713/2.305, allocations: 4.137 MB / 0.7428 GB, free: 91.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008626/2.313, allocations: 2.04 MB / 0.7448 GB, free: 91.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04531/2.359, allocations: 22.9 MB / 0.7671 GB, free: 82.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009667/2.368, allocations: 0.551 MB / 0.7677 GB, free: 82.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002074/2.371, allocations: 0.5326 MB / 0.7682 GB, free: 82.36 MB / 394.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.008091/2.379, allocations: 3.106 MB / 0.7712 GB, free: 81.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/2.38, allocations: 0.5722 MB / 0.7718 GB, free: 81.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02902/2.409, allocations: 9.85 MB / 0.7814 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.308e-05/2.409, allocations: 42.06 kB / 0.7815 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.752e-05/2.409, allocations: 18.56 kB / 0.7815 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.137e-05/2.409, allocations: 15.47 kB / 0.7815 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05199/2.461, allocations: 19.25 MB / 0.8003 GB, free: 64.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.581e-05/2.461, allocations: 7.781 kB / 0.8003 GB, free: 64.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/2.465, allocations: 0.5096 MB / 0.8008 GB, free: 63.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01499/2.48, allocations: 3.62 MB / 0.8043 GB, free: 61.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008125/2.48, allocations: 68.06 kB / 0.8044 GB, free: 61.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03727/2.518, allocations: 19.79 MB / 0.8237 GB, free: 42.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.097e-06/2.518, allocations: 7.953 kB / 0.8237 GB, free: 42.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03382/2.552, allocations: 14.36 MB / 0.8378 GB, free: 28.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00376/2.555, allocations: 1.123 MB / 0.8389 GB, free: 27.04 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001694/2.557, allocations: 56 kB / 0.8389 GB, free: 26.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004574/2.562, allocations: 227.6 kB / 0.8391 GB, free: 26.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001249/2.563, allocations: 227.3 kB / 0.8393 GB, free: 26.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004661/2.564, allocations: 93.52 kB / 0.8394 GB, free: 26.45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009286/2.573, allocations: 3.788 MB / 0.8431 GB, free: 22.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.62e-06/2.573, allocations: 0 / 0.8431 GB, free: 22.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01158/2.585, allocations: 1.848 MB / 0.8449 GB, free: 20.84 MB / 394.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.001162/2.586, allocations: 239.2 kB / 0.8452 GB, free: 20.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.248/2.834, allocations: 9.712 MB / 0.8546 GB, free: 95.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/2.834, allocations: 0 / 0.8546 GB, free: 95.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00842/2.842, allocations: 3.795 MB / 0.8583 GB, free: 95.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005135/2.847, allocations: 0.7265 MB / 0.8591 GB, free: 95.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0394/2.887, allocations: 19.11 MB / 0.8777 GB, free: 88.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01156/2.898, allocations: 5.018 MB / 0.8826 GB, free: 87.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002269/2.901, allocations: 446.8 kB / 0.8831 GB, free: 87.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.926e-06/2.901, allocations: 0 / 0.8831 GB, free: 87.84 MB / 394.7 MB Notification: Performance of Templates: time 0.4403/3.341, allocations: 146.1 MB / 1.026 GB, free: 93.12 MB / 394.7 MB