Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.171/2.171, allocations: 234.9 MB / 251.1 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005846/0.0005848, allocations: 12 kB / 314.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3347, allocations: 54.87 MB / 369.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1793/0.5141, allocations: 105.7 MB / 475.5 MB, free: 0.9688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.5144, allocations: 75.97 kB / 475.6 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8122/1.327, allocations: 137.1 MB / 0.5984 GB, free: 5.238 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.327, allocations: 4 kB / 0.5984 GB, free: 5.234 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004769/1.327, allocations: 132 kB / 0.5985 GB, free: 5.105 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03222/1.359, allocations: 7.645 MB / 0.606 GB, free: 13.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/1.359, allocations: 15.97 kB / 0.606 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05744/1.417, allocations: 7.545 MB / 0.6134 GB, free: 5.789 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03611/1.453, allocations: 9.84 MB / 0.623 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006205/1.454, allocations: 496.8 kB / 0.6235 GB, free: 11.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003207/1.457, allocations: 0.6442 MB / 0.6241 GB, free: 10.73 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3675/1.824, allocations: 16.75 MB / 0.6404 GB, free: 66.33 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004357/1.825, allocations: 101.4 kB / 0.6405 GB, free: 66.33 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001783/1.827, allocations: 316.2 kB / 0.6408 GB, free: 66.33 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00349/1.83, allocations: 1.578 MB / 0.6424 GB, free: 66.31 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04212/1.872, allocations: 13.74 MB / 0.6558 GB, free: 66.26 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1079/1.98, allocations: 74.26 MB / 0.7283 GB, free: 19.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03967/2.02, allocations: 7.695 MB / 0.7358 GB, free: 17.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04376/2.064, allocations: 18.62 MB / 0.754 GB, free: 7.801 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.72e-05/2.064, allocations: 67.06 kB / 0.7541 GB, free: 7.738 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 8.075e-06/2.064, allocations: 0 / 0.7541 GB, free: 7.738 MB / 458.7 MB Notification: Performance of matching and sorting (n=361): time 0.4017/2.466, allocations: 50.24 MB / 0.8031 GB, free: 6.309 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002659/2.466, allocations: 269.8 kB / 0.8034 GB, free: 5.988 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02199/2.488, allocations: 6.064 MB / 0.8093 GB, free: 12 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001076/2.489, allocations: 85.7 kB / 0.8094 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005819/2.495, allocations: 4.55 MB / 0.8138 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002747/2.498, allocations: 1.331 MB / 0.8151 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001375/2.499, allocations: 183.8 kB / 0.8153 GB, free: 9.879 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000948/2.5, allocations: 0.7031 MB / 0.816 GB, free: 9.164 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01222/2.513, allocations: 3.777 MB / 0.8197 GB, free: 5.379 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3843/2.897, allocations: 8.994 MB / 0.8285 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0158/2.913, allocations: 5.634 MB / 0.834 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004256/2.913, allocations: 52.62 kB / 0.834 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06245/2.976, allocations: 16.46 MB / 0.8501 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000206/2.976, allocations: 82.19 kB / 0.8502 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003278/2.976, allocations: 182.7 kB / 0.8504 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02525/3.002, allocations: 4.177 MB / 0.8544 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01388/3.016, allocations: 2.026 MB / 0.8564 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0618/3.077, allocations: 22.92 MB / 0.8788 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01227/3.09, allocations: 0.5537 MB / 0.8793 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002541/3.092, allocations: 0.5239 MB / 0.8799 GB, free: 100.6 MB / 0.4948 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 (1077): * Single equations (assignments): 1072 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01015/3.102, allocations: 3.116 MB / 0.8829 GB, free: 99.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001696/3.104, allocations: 0.5712 MB / 0.8835 GB, free: 99.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04187/3.146, allocations: 9.818 MB / 0.893 GB, free: 96.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.838e-05/3.146, allocations: 37.88 kB / 0.8931 GB, free: 96.18 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.554e-05/3.146, allocations: 16.47 kB / 0.8931 GB, free: 96.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.467e-05/3.146, allocations: 16.88 kB / 0.8931 GB, free: 96.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06942/3.216, allocations: 19.19 MB / 0.9118 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-05/3.216, allocations: 0 / 0.9118 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005189/3.221, allocations: 0.4955 MB / 0.9123 GB, free: 89.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0272/3.248, allocations: 3.665 MB / 0.9159 GB, free: 88.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/3.25, allocations: 69.33 kB / 0.916 GB, free: 88.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05196/3.301, allocations: 19.8 MB / 0.9353 GB, free: 71.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/3.302, allocations: 0 / 0.9353 GB, free: 71.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04866/3.35, allocations: 14.16 MB / 0.9491 GB, free: 60.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004267/3.355, allocations: 1.117 MB / 0.9502 GB, free: 59.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002388/3.357, allocations: 61.48 kB / 0.9503 GB, free: 59.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006617/3.364, allocations: 237 kB / 0.9505 GB, free: 58.92 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001346/3.365, allocations: 218.4 kB / 0.9507 GB, free: 58.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004296/3.365, allocations: 92.47 kB / 0.9508 GB, free: 58.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01043/3.376, allocations: 3.788 MB / 0.9545 GB, free: 55.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.01e-07/3.376, allocations: 0 / 0.9545 GB, free: 55.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01255/3.389, allocations: 1.843 MB / 0.9563 GB, free: 53.78 MB / 0.4948 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 (264): * Single equations (assignments): 259 * 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.001369/3.39, allocations: 223.2 kB / 0.9565 GB, free: 53.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02395/3.414, allocations: 9.627 MB / 0.9659 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/3.414, allocations: 320 / 0.9659 GB, free: 45.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009417/3.423, allocations: 3.754 MB / 0.9696 GB, free: 41.76 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006158/3.43, allocations: 0.7124 MB / 0.9703 GB, free: 41.06 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04581/3.475, allocations: 19.12 MB / 0.989 GB, free: 21.94 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01206/3.488, allocations: 5.004 MB / 0.9939 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002757/3.49, allocations: 447.4 kB / 0.9943 GB, free: 16.49 MB / 0.4948 GB Notification: Performance of SimCode: time 1.122e-06/3.49, allocations: 0 / 0.9943 GB, free: 16.49 MB / 0.4948 GB Notification: Performance of Templates: time 0.6487/4.139, allocations: 145.8 MB / 1.137 GB, free: 32.69 MB / 0.4948 GB