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.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.647/1.647, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.984e-05/3.001e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2075, allocations: 38.77 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3544/0.5619, allocations: 91.97 MB / 359.6 MB, free: 79.2 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.5623, allocations: 86.3 kB / 359.6 MB, free: 79.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3872/0.9494, allocations: 110.4 MB / 470.1 MB, free: 8.266 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.356e-06/0.9495, allocations: 0 / 470.1 MB, free: 8.266 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003704/0.9499, allocations: 111.9 kB / 470.2 MB, free: 8.156 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01689/0.9668, allocations: 4.913 MB / 475.1 MB, free: 3.176 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.9669, allocations: 8.031 kB / 475.1 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0368/1.004, allocations: 6.896 MB / 482 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02242/1.026, allocations: 6.76 MB / 488.8 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005777/1.027, allocations: 390.3 kB / 489.1 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002361/1.029, allocations: 0.5153 MB / 489.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2429/1.272, allocations: 12.54 MB / 0.4904 GB, free: 54.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005104/1.273, allocations: 59.81 kB / 0.4905 GB, free: 54.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002831/1.276, allocations: 236.2 kB / 0.4907 GB, free: 54.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003187/1.279, allocations: 1.05 MB / 0.4917 GB, free: 54.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04488/1.324, allocations: 10.37 MB / 0.5019 GB, free: 54.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0935/1.417, allocations: 50.09 MB / 0.5508 GB, free: 23.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01643/1.434, allocations: 4.779 MB / 0.5554 GB, free: 21.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003287/1.437, allocations: 1.877 MB / 0.5573 GB, free: 20.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/1.451, allocations: 7.061 MB / 0.5642 GB, free: 16.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/1.451, allocations: 54 kB / 0.5642 GB, free: 16.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 6.868e-06/1.451, allocations: 0 / 0.5642 GB, free: 16.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=224): time 0.07479/1.526, allocations: 17.09 MB / 0.5809 GB, free: 9.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/1.526, allocations: 213.3 kB / 0.5811 GB, free: 9.402 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007784/1.534, allocations: 3.871 MB / 0.5849 GB, free: 6.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/1.535, allocations: 57.7 kB / 0.585 GB, free: 5.973 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00241/1.537, allocations: 3.439 MB / 0.5883 GB, free: 2.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000963/1.538, allocations: 0.8417 MB / 0.5891 GB, free: 2.156 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005985/1.539, allocations: 128 kB / 0.5893 GB, free: 2.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004105/1.539, allocations: 0.5764 MB / 0.5898 GB, free: 1.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007258/1.546, allocations: 2.269 MB / 0.592 GB, free: 0 / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008914/1.555, allocations: 5.843 MB / 0.5977 GB, free: 8.711 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007448/1.563, allocations: 3.506 MB / 0.6012 GB, free: 5.711 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001216/1.563, allocations: 40 kB / 0.6012 GB, free: 5.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02322/1.586, allocations: 8.534 MB / 0.6095 GB, free: 14.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/1.586, allocations: 64.19 kB / 0.6096 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002017/1.587, allocations: 136 kB / 0.6097 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004273/1.591, allocations: 1.027 MB / 0.6107 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006354/1.597, allocations: 1.417 MB / 0.6121 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/1.611, allocations: 6.859 MB / 0.6188 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006495/1.618, allocations: 337.3 kB / 0.6191 GB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001369/1.619, allocations: 380 kB / 0.6195 GB, free: 5.352 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001766/1.621, allocations: 0.5919 MB / 0.6201 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/1.622, allocations: 402.8 kB / 0.6205 GB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/1.632, allocations: 3.614 MB / 0.624 GB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.713e-05/1.632, allocations: 24 kB / 0.624 GB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.421e-05/1.632, allocations: 11.95 kB / 0.624 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.106e-05/1.632, allocations: 8.156 kB / 0.624 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2434/1.876, allocations: 9.886 MB / 0.6337 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/1.876, allocations: 6 kB / 0.6337 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002213/1.878, allocations: 352.8 kB / 0.634 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/1.882, allocations: 0.7937 MB / 0.6348 GB, free: 78.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003772/1.882, allocations: 47.66 kB / 0.6348 GB, free: 78.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009927/1.892, allocations: 5.579 MB / 0.6403 GB, free: 77.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.168e-06/1.892, allocations: 9.781 kB / 0.6403 GB, free: 77.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/1.905, allocations: 6.946 MB / 0.6471 GB, free: 75.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.908, allocations: 0.7113 MB / 0.6478 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/1.909, allocations: 41.69 kB / 0.6478 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002873/1.912, allocations: 100.6 kB / 0.6479 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000576/1.912, allocations: 140.4 kB / 0.648 GB, free: 75.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/1.912, allocations: 63.31 kB / 0.6481 GB, free: 75.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006268/1.919, allocations: 2.723 MB / 0.6508 GB, free: 75.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.442e-06/1.919, allocations: 3.281 kB / 0.6508 GB, free: 75.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007879/1.927, allocations: 1.179 MB / 0.6519 GB, free: 75.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008236/1.928, allocations: 226.6 kB / 0.6521 GB, free: 75.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01014/1.938, allocations: 5.299 MB / 0.6573 GB, free: 75.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.938, allocations: 0 / 0.6573 GB, free: 75.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003476/1.941, allocations: 1.762 MB / 0.659 GB, free: 75.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/1.945, allocations: 0.5015 MB / 0.6595 GB, free: 75.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02284/1.968, allocations: 9.578 MB / 0.6689 GB, free: 72.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008295/1.976, allocations: 3.982 MB / 0.6728 GB, free: 70.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/1.978, allocations: 312.3 kB / 0.6731 GB, free: 70.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.243e-06/1.978, allocations: 3.812 kB / 0.6731 GB, free: 70.95 MB / 378.7 MB Notification: Performance of Templates: time 0.1272/2.105, allocations: 86.44 MB / 0.7575 GB, free: 8.305 MB / 378.7 MB