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.Loops.Fourbar1.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.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.622/1.622, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003519, allocations: 8 kB / 233.2 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07062/0.07099, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3015/0.3725, allocations: 83.1 MB / 355.1 MB, free: 7.012 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.3728, allocations: 87.89 kB / 355.2 MB, free: 6.965 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6401/1.013, allocations: 122.3 MB / 477.5 MB, free: 70.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.013, allocations: 0 / 477.5 MB, free: 70.42 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004196/1.013, allocations: 121.6 kB / 477.6 MB, free: 70.41 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: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02436/1.038, allocations: 7.112 MB / 484.7 MB, free: 67.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/1.038, allocations: 10.78 kB / 484.8 MB, free: 67.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04658/1.084, allocations: 9.422 MB / 494.2 MB, free: 65.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.024/1.108, allocations: 8.6 MB / 0.491 GB, free: 58.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005157/1.109, allocations: 426.6 kB / 0.4914 GB, free: 58.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002761/1.112, allocations: 0.5773 MB / 0.492 GB, free: 57.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03694/1.149, allocations: 14.79 MB / 0.5064 GB, free: 41.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000442/1.149, allocations: 87.2 kB / 0.5065 GB, free: 41.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002486/1.152, allocations: 268.7 kB / 0.5067 GB, free: 41.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002458/1.154, allocations: 1.436 MB / 0.5081 GB, free: 39.92 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03165/1.186, allocations: 12.98 MB / 0.5208 GB, free: 26.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3301/1.516, allocations: 64.56 MB / 0.5839 GB, free: 39.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02546/1.542, allocations: 7.855 MB / 0.5915 GB, free: 39.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02625/1.568, allocations: 12.98 MB / 0.6042 GB, free: 37.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.246e-05/1.568, allocations: 76.56 kB / 0.6043 GB, free: 37.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 8.127e-06/1.568, allocations: 0 / 0.6043 GB, free: 37.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 1.961/3.529, allocations: 266.1 MB / 0.8642 GB, free: 32.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/3.529, allocations: 267.4 kB / 0.8644 GB, free: 32.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2557/3.785, allocations: 4.761 MB / 0.8691 GB, free: 113.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001731/3.787, allocations: 122.7 kB / 0.8692 GB, free: 113.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003306/3.79, allocations: 3.778 MB / 0.8729 GB, free: 112.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003625/3.794, allocations: 2.111 MB / 0.875 GB, free: 110.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002463/3.796, allocations: 189.1 kB / 0.8751 GB, free: 110.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001201/3.797, allocations: 0.7167 MB / 0.8758 GB, free: 110.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01872/3.816, allocations: 8.671 MB / 0.8843 GB, free: 110.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01968/3.836, allocations: 12.76 MB / 0.8968 GB, free: 103.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02003/3.856, allocations: 10.57 MB / 0.9071 GB, free: 99.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001622/3.856, allocations: 41.05 kB / 0.9071 GB, free: 99.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1195/3.976, allocations: 40.08 MB / 0.9463 GB, free: 86.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001227/3.976, allocations: 64.25 kB / 0.9463 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001859/3.976, allocations: 140.3 kB / 0.9465 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08454/4.061, allocations: 21.56 MB / 0.9675 GB, free: 73.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005912/4.067, allocations: 1.432 MB / 0.9689 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5419/4.608, allocations: 151.1 MB / 1.117 GB, free: 59.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01251/4.621, allocations: 0.7193 MB / 1.117 GB, free: 58.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002762/4.624, allocations: 0.5376 MB / 1.118 GB, free: 58.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * 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 (772): * Single equations (assignments): 765 * 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.009248/4.633, allocations: 3.113 MB / 1.121 GB, free: 55.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002667/4.636, allocations: 0.5929 MB / 1.121 GB, free: 55.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3729/5.009, allocations: 36.29 MB / 1.157 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/5.009, allocations: 62.7 kB / 1.157 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000221/5.009, allocations: 64 kB / 1.157 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001222/5.009, allocations: 32.56 kB / 1.157 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1535/5.163, allocations: 57.2 MB / 1.213 GB, free: 81.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.767e-05/5.163, allocations: 0.75 kB / 1.213 GB, free: 81.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002151/5.165, allocations: 272.4 kB / 1.213 GB, free: 81.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08258/5.248, allocations: 20.76 MB / 1.233 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001824/5.25, allocations: 97.5 kB / 1.233 GB, free: 77.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.563/5.813, allocations: 138.9 MB / 1.369 GB, free: 78.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.535e-06/5.813, allocations: 0 / 1.369 GB, free: 78.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1218/5.934, allocations: 48.8 MB / 1.417 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007295/5.942, allocations: 2.403 MB / 1.419 GB, free: 41.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003062/5.945, allocations: 96.94 kB / 1.419 GB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008518/5.953, allocations: 0.492 MB / 1.42 GB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004165/5.958, allocations: 0.5075 MB / 1.42 GB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001668/5.959, allocations: 151 kB / 1.42 GB, free: 40.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00808/5.967, allocations: 3.406 MB / 1.424 GB, free: 38.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.149e-06/5.968, allocations: 1.312 kB / 1.424 GB, free: 38.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.02017/5.988, allocations: 3.428 MB / 1.427 GB, free: 34.67 MB / 410.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 (148): * Single equations (assignments): 141 * 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.002019/5.99, allocations: 242 kB / 1.427 GB, free: 34.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.28/6.27, allocations: 24.74 MB / 1.451 GB, free: 96.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.897e-06/6.27, allocations: 3.062 kB / 1.451 GB, free: 96.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03263/6.302, allocations: 13.8 MB / 1.465 GB, free: 95.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006233/6.309, allocations: 0.7089 MB / 1.466 GB, free: 95.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05474/6.364, allocations: 27.21 MB / 1.492 GB, free: 88.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01179/6.375, allocations: 5.313 MB / 1.497 GB, free: 87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/6.377, allocations: 349.7 kB / 1.498 GB, free: 86.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.75e-06/6.377, allocations: 0 / 1.498 GB, free: 86.98 MB / 410.7 MB Notification: Performance of Templates: time 0.5729/6.95, allocations: 227 MB / 1.719 GB, free: 1.391 MB / 410.7 MB