Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 0.9821/0.9821, allocations: 111.1 MB / 127.3 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002559/0.0002559, allocations: 4 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05347/0.05376, allocations: 25.17 MB / 184 MB, free: 6.012 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2472/0.301, allocations: 48.41 MB / 232.5 MB, free: 14.3 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.3014, allocations: 82.27 kB / 232.5 MB, free: 14.25 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.111/5.412, allocations: 0.5459 GB / 0.773 GB, free: 25.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.176e-06/5.412, allocations: 0 / 0.773 GB, free: 25.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0006962/5.413, allocations: 147.1 kB / 0.7731 GB, free: 25.93 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2674 * Number of variables: 2674 Notification: Performance of Generate backend data structure: time 0.3584/5.771, allocations: 47.43 MB / 0.8194 GB, free: 21.71 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/5.771, allocations: 12.03 kB / 0.8194 GB, free: 21.7 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 11.58/17.36, allocations: 1.11 GB / 1.93 GB, free: 4.988 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3287/17.68, allocations: 22.67 MB / 1.952 GB, free: 42.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009168/17.69, allocations: 0.557 MB / 1.953 GB, free: 42.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.02194/17.71, allocations: 0.731 MB / 1.953 GB, free: 41.98 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.369/21.08, allocations: 360.2 MB / 2.305 GB, free: 39.55 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006578/21.08, allocations: 63.03 kB / 2.305 GB, free: 39.55 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0205/21.1, allocations: 332.1 kB / 2.305 GB, free: 39.55 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008783/21.11, allocations: 2.318 MB / 2.308 GB, free: 39.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.815/27.92, allocations: 0.684 GB / 2.992 GB, free: 29.51 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.062/36.98, allocations: 1.044 GB / 4.036 GB, free: 55.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.7475/37.73, allocations: 92.5 MB / 4.126 GB, free: 29.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5165/38.25, allocations: 74.42 MB / 4.199 GB, free: 55.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.079e-05/38.25, allocations: 82.86 kB / 4.199 GB, free: 55.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=446): time 8.867e-06/38.25, allocations: 0 / 4.199 GB, free: 55.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=710): time 5.003/43.25, allocations: 420.2 MB / 4.609 GB, free: 72.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/43.25, allocations: 287.6 kB / 4.61 GB, free: 72.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5592/43.81, allocations: 38.15 MB / 4.647 GB, free: 77.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.005479/43.82, allocations: 135 kB / 4.647 GB, free: 77.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004849/43.82, allocations: 4.818 MB / 4.652 GB, free: 74.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.008109/43.83, allocations: 2.49 MB / 4.654 GB, free: 73.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009156/43.84, allocations: 245.2 kB / 4.654 GB, free: 73.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.001138/43.84, allocations: 0.8271 MB / 4.655 GB, free: 73.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.9809/44.82, allocations: 92.34 MB / 4.745 GB, free: 77.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.725/45.54, allocations: 97.61 MB / 4.841 GB, free: 54.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.8698/46.41, allocations: 77.27 MB / 4.916 GB, free: 70.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000232/46.41, allocations: 51.47 kB / 4.916 GB, free: 70.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=1570) (initialization): time 1.994/48.41, allocations: 192.6 MB / 5.104 GB, free: 66.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/48.41, allocations: 82.48 kB / 5.104 GB, free: 66.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002888/48.41, allocations: 180.6 kB / 5.104 GB, free: 66.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1182/48.53, allocations: 21.14 MB / 5.125 GB, free: 62.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3296/48.86, allocations: 36.56 MB / 5.161 GB, free: 44.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8527/49.71, allocations: 148.3 MB / 5.306 GB, free: 57.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.6376/50.35, allocations: 57.44 MB / 5.362 GB, free: 54.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01083/50.36, allocations: 1.747 MB / 5.363 GB, free: 52.93 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 800 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1109): * Single equations (assignments): 1102 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.02145/50.38, allocations: 3.787 MB / 5.367 GB, free: 49.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01009/50.39, allocations: 0.7089 MB / 5.368 GB, free: 48.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4519/50.84, allocations: 37.06 MB / 5.404 GB, free: 58.92 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000107/50.84, allocations: 68.47 kB / 5.404 GB, free: 58.92 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001979/50.84, allocations: 66.03 kB / 5.404 GB, free: 58.92 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001797/50.84, allocations: 34.95 kB / 5.404 GB, free: 58.92 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.331/51.17, allocations: 87.57 MB / 5.49 GB, free: 23.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001459/51.17, allocations: 2.75 kB / 5.49 GB, free: 23.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.5111/51.69, allocations: 22.43 MB / 5.512 GB, free: 61.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1096/51.79, allocations: 20.26 MB / 5.531 GB, free: 61.49 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005967/51.8, allocations: 0.6531 MB / 5.532 GB, free: 61.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6373/52.44, allocations: 136.5 MB / 5.665 GB, free: 46.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/52.44, allocations: 0 / 5.665 GB, free: 46.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.836/54.27, allocations: 205.2 MB / 5.866 GB, free: 56.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.03468/54.31, allocations: 6.61 MB / 5.872 GB, free: 56.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01534/54.32, allocations: 118.8 kB / 5.872 GB, free: 56.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.3289/54.65, allocations: 32.95 MB / 5.904 GB, free: 56.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005626/54.66, allocations: 0.5578 MB / 5.905 GB, free: 56.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00593/54.66, allocations: 0.7343 MB / 5.906 GB, free: 56.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.5606/55.23, allocations: 34.13 MB / 5.939 GB, free: 59.15 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.563e-06/55.23, allocations: 0 / 5.939 GB, free: 59.15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.04822/55.27, allocations: 5.82 MB / 5.945 GB, free: 59.15 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.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 (254): * Single equations (assignments): 247 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.005517/55.28, allocations: 266.4 kB / 5.945 GB, free: 59.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 1.412/56.69, allocations: 163.2 MB / 6.104 GB, free: 55.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/56.69, allocations: 1.969 kB / 6.104 GB, free: 55.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.7267/57.42, allocations: 67.74 MB / 6.17 GB, free: 59.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01373/57.43, allocations: 0.7508 MB / 6.171 GB, free: 58.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4728/57.9, allocations: 84.49 MB / 6.254 GB, free: 44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01672/57.92, allocations: 6.277 MB / 6.26 GB, free: 37.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04025/57.96, allocations: 3.238 MB / 6.263 GB, free: 34.69 MB / 330.7 MB Notification: Performance of SimCode: time 3.426e-06/57.96, allocations: 0 / 6.263 GB, free: 34.69 MB / 330.7 MB Notification: Performance of Templates: time 2.566/60.53, allocations: 0.5371 GB / 6.8 GB, free: 69.12 MB / 362.7 MB