Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.789/1.789, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003523, allocations: 8 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07984/0.08021, allocations: 44.51 MB / 308.5 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4248, allocations: 88.83 MB / 397.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.425, allocations: 88.41 kB / 397.4 MB, free: 18.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4499/0.875, allocations: 122.6 MB / 0.5078 GB, free: 1.777 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.65e-06/0.875, allocations: 0 / 0.5078 GB, free: 1.777 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004447/0.8755, allocations: 124 kB / 0.5079 GB, free: 1.656 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: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.02619/0.9017, allocations: 7.116 MB / 0.5148 GB, free: 10.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.9018, allocations: 8.031 kB / 0.5149 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04934/0.9511, allocations: 9.422 MB / 0.5241 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2654/1.217, allocations: 8.586 MB / 0.5324 GB, free: 70.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005066/1.217, allocations: 432.5 kB / 0.5328 GB, free: 70.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002721/1.22, allocations: 0.5812 MB / 0.5334 GB, free: 70.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03924/1.259, allocations: 14.8 MB / 0.5479 GB, free: 67.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004429/1.26, allocations: 84.95 kB / 0.548 GB, free: 67.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002515/1.262, allocations: 272.3 kB / 0.5482 GB, free: 67.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00275/1.265, allocations: 1.448 MB / 0.5496 GB, free: 67.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03362/1.299, allocations: 12.99 MB / 0.5623 GB, free: 66.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08626/1.385, allocations: 64.64 MB / 0.6254 GB, free: 41.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02458/1.41, allocations: 7.865 MB / 0.6331 GB, free: 38.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0262/1.436, allocations: 12.97 MB / 0.6458 GB, free: 32.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/1.436, allocations: 72.64 kB / 0.6459 GB, free: 32.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 7.645e-06/1.436, allocations: 0 / 0.6459 GB, free: 32.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 2.256/3.692, allocations: 266.1 MB / 0.9058 GB, free: 95.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/3.693, allocations: 274.7 kB / 0.906 GB, free: 95.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/3.703, allocations: 4.757 MB / 0.9107 GB, free: 93.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001689/3.705, allocations: 121.8 kB / 0.9108 GB, free: 93.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002896/3.708, allocations: 3.783 MB / 0.9145 GB, free: 90.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003105/3.711, allocations: 2.115 MB / 0.9166 GB, free: 89.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001927/3.713, allocations: 189.8 kB / 0.9167 GB, free: 89.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007446/3.714, allocations: 0.7113 MB / 0.9174 GB, free: 88.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01642/3.73, allocations: 8.674 MB / 0.9259 GB, free: 85.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01806/3.748, allocations: 12.75 MB / 0.9384 GB, free: 71.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01883/3.767, allocations: 10.57 MB / 0.9487 GB, free: 62.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/3.767, allocations: 40 kB / 0.9487 GB, free: 62.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.3949/4.162, allocations: 40.08 MB / 0.9879 GB, free: 81.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000116/4.162, allocations: 64.38 kB / 0.9879 GB, free: 81.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002055/4.162, allocations: 141 kB / 0.988 GB, free: 81.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09145/4.254, allocations: 21.55 MB / 1.009 GB, free: 80.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006191/4.26, allocations: 1.436 MB / 1.01 GB, free: 80.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5752/4.835, allocations: 151.4 MB / 1.158 GB, free: 72.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0128/4.848, allocations: 0.7203 MB / 1.159 GB, free: 72.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002878/4.851, allocations: 0.534 MB / 1.16 GB, free: 72.56 MB / 442.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.00955/4.861, allocations: 3.111 MB / 1.163 GB, free: 72.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002485/4.863, allocations: 0.5933 MB / 1.163 GB, free: 72.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.106/4.969, allocations: 36.3 MB / 1.199 GB, free: 71.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.669e-05/4.969, allocations: 62.78 kB / 1.199 GB, free: 71.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001773/4.97, allocations: 62.34 kB / 1.199 GB, free: 71.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/4.97, allocations: 29.34 kB / 1.199 GB, free: 71.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1481/5.118, allocations: 57.2 MB / 1.255 GB, free: 51.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.505e-05/5.118, allocations: 5.031 kB / 1.255 GB, free: 51.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/5.12, allocations: 276 kB / 1.255 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07829/5.198, allocations: 20.76 MB / 1.275 GB, free: 34.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00185/5.2, allocations: 92 kB / 1.275 GB, free: 34.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5763/5.776, allocations: 138.9 MB / 1.411 GB, free: 45.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.119e-06/5.776, allocations: 6 kB / 1.411 GB, free: 45.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3901/6.166, allocations: 49.02 MB / 1.459 GB, free: 70.76 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008055/6.175, allocations: 2.403 MB / 1.461 GB, free: 70.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003291/6.178, allocations: 93.88 kB / 1.461 GB, free: 70.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008912/6.187, allocations: 0.5013 MB / 1.462 GB, free: 70.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00488/6.192, allocations: 0.5028 MB / 1.462 GB, free: 70.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001858/6.194, allocations: 145.1 kB / 1.462 GB, free: 70.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009592/6.203, allocations: 3.404 MB / 1.466 GB, free: 70.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.488e-06/6.203, allocations: 0 / 1.466 GB, free: 70.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01992/6.223, allocations: 3.438 MB / 1.469 GB, free: 70.48 MB / 442.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.002363/6.226, allocations: 235.1 kB / 1.469 GB, free: 70.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.05326/6.279, allocations: 24.53 MB / 1.493 GB, free: 69.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.473e-06/6.279, allocations: 2.969 kB / 1.493 GB, free: 69.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03236/6.311, allocations: 13.79 MB / 1.507 GB, free: 68.18 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006246/6.318, allocations: 0.7046 MB / 1.507 GB, free: 68.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05546/6.373, allocations: 27.23 MB / 1.534 GB, free: 60.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01253/6.386, allocations: 5.313 MB / 1.539 GB, free: 58.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001598/6.387, allocations: 350 kB / 1.539 GB, free: 58.45 MB / 442.7 MB Notification: Performance of SimCode: time 1.939e-06/6.387, allocations: 2.625 kB / 1.539 GB, free: 58.45 MB / 442.7 MB Notification: Performance of Templates: time 0.6066/6.994, allocations: 227.3 MB / 1.761 GB, free: 8.418 MB / 458.7 MB