Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09186/0.09223, allocations: 44.49 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4293/0.5216, allocations: 94.24 MB / 403.2 MB, free: 14.11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.522, allocations: 88.86 kB / 403.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6613/1.183, allocations: 126.9 MB / 0.5177 GB, free: 5.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.16e-06/1.183, allocations: 4 kB / 0.5177 GB, free: 5.977 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004949/1.184, allocations: 112 kB / 0.5178 GB, free: 5.867 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.3213/1.505, allocations: 6.773 MB / 0.5245 GB, free: 72.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/1.505, allocations: 13.45 kB / 0.5245 GB, free: 72.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06185/1.567, allocations: 8.298 MB / 0.5326 GB, free: 71.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02875/1.596, allocations: 7.288 MB / 0.5397 GB, free: 71.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006116/1.597, allocations: 453.5 kB / 0.5401 GB, free: 71.33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003745/1.6, allocations: 0.5886 MB / 0.5407 GB, free: 71.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04751/1.648, allocations: 15.74 MB / 0.5561 GB, free: 68.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005034/1.648, allocations: 73.69 kB / 0.5561 GB, free: 68.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003524/1.652, allocations: 279.5 kB / 0.5564 GB, free: 68.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003529/1.656, allocations: 1.619 MB / 0.558 GB, free: 68.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04107/1.697, allocations: 13.95 MB / 0.5716 GB, free: 68.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1074/1.804, allocations: 63.98 MB / 0.6341 GB, free: 40.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02241/1.827, allocations: 6.427 MB / 0.6404 GB, free: 36.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03524/1.862, allocations: 14.33 MB / 0.6544 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.899e-05/1.862, allocations: 63.12 kB / 0.6544 GB, free: 23.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.084e-06/1.862, allocations: 0 / 0.6544 GB, free: 23.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.5622/2.424, allocations: 42.35 MB / 0.6958 GB, free: 82.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/2.424, allocations: 211.1 kB / 0.696 GB, free: 82.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0145/2.439, allocations: 5.401 MB / 0.7012 GB, free: 81.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009109/2.44, allocations: 76.08 kB / 0.7013 GB, free: 81.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003827/2.444, allocations: 4.281 MB / 0.7055 GB, free: 79.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002121/2.446, allocations: 1.25 MB / 0.7067 GB, free: 79.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/2.447, allocations: 174.7 kB / 0.7069 GB, free: 79.03 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006676/2.448, allocations: 0.6851 MB / 0.7076 GB, free: 78.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01055/2.458, allocations: 4.532 MB / 0.712 GB, free: 78.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01409/2.473, allocations: 9.519 MB / 0.7213 GB, free: 72.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/2.487, allocations: 6.42 MB / 0.7275 GB, free: 72.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001918/2.487, allocations: 50.44 kB / 0.7276 GB, free: 72.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.069/2.556, allocations: 18.48 MB / 0.7456 GB, free: 68.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/2.556, allocations: 79.72 kB / 0.7457 GB, free: 68.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/2.557, allocations: 172.7 kB / 0.7459 GB, free: 68.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03948/2.596, allocations: 5.634 MB / 0.7514 GB, free: 67.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01304/2.609, allocations: 2.046 MB / 0.7534 GB, free: 67.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05022/2.659, allocations: 24.26 MB / 0.7771 GB, free: 56.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01077/2.67, allocations: 0.5335 MB / 0.7776 GB, free: 55.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/2.672, allocations: 0.5078 MB / 0.7781 GB, free: 55.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007959/2.68, allocations: 3.089 MB / 0.7811 GB, free: 54.53 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/2.681, allocations: 0.4924 MB / 0.7816 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05058/2.732, allocations: 12.34 MB / 0.7936 GB, free: 44.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/2.732, allocations: 55.09 kB / 0.7937 GB, free: 44.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.083e-05/2.732, allocations: 8 kB / 0.7937 GB, free: 44.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.675e-05/2.732, allocations: 18.58 kB / 0.7937 GB, free: 44.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07615/2.808, allocations: 23.93 MB / 0.8171 GB, free: 24.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.386e-05/2.809, allocations: 4 kB / 0.8171 GB, free: 24.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005436/2.814, allocations: 0.5655 MB / 0.8177 GB, free: 24.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03388/2.848, allocations: 4.648 MB / 0.8222 GB, free: 19.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008048/2.849, allocations: 57.11 kB / 0.8222 GB, free: 19.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3367/3.185, allocations: 19.56 MB / 0.8413 GB, free: 73.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/3.185, allocations: 18.62 kB / 0.8414 GB, free: 73.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05917/3.245, allocations: 16.64 MB / 0.8576 GB, free: 72.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004409/3.249, allocations: 1.21 MB / 0.8588 GB, free: 72.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002153/3.251, allocations: 54.91 kB / 0.8588 GB, free: 72.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005952/3.257, allocations: 250.6 kB / 0.8591 GB, free: 72.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001347/3.259, allocations: 192 kB / 0.8593 GB, free: 72.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004389/3.259, allocations: 86.72 kB / 0.8593 GB, free: 72.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008271/3.267, allocations: 3.348 MB / 0.8626 GB, free: 72.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.01e-07/3.267, allocations: 0 / 0.8626 GB, free: 72.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01079/3.278, allocations: 1.698 MB / 0.8643 GB, free: 72.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001219/3.28, allocations: 215.9 kB / 0.8645 GB, free: 72.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0224/3.302, allocations: 10.43 MB / 0.8747 GB, free: 72.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/3.302, allocations: 3 kB / 0.8747 GB, free: 72.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008699/3.311, allocations: 3.94 MB / 0.8785 GB, free: 71.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004901/3.316, allocations: 0.5739 MB / 0.8791 GB, free: 71.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04051/3.356, allocations: 19.03 MB / 0.8977 GB, free: 61.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0104/3.367, allocations: 4.751 MB / 0.9023 GB, free: 60.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003076/3.37, allocations: 416.2 kB / 0.9027 GB, free: 60.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/3.37, allocations: 2.812 kB / 0.9027 GB, free: 60.27 MB / 426.7 MB Notification: Performance of Templates: time 0.5526/3.923, allocations: 142 MB / 1.041 GB, free: 84.23 MB / 442.7 MB