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.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003696, allocations: 12 kB / 264 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.0819, allocations: 44.5 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3633/0.4452, allocations: 97.79 MB / 406.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.4455, allocations: 88.23 kB / 406.3 MB, free: 16.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4115/0.8571, allocations: 110.3 MB / 0.5045 GB, free: 5.105 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.923e-06/0.8571, allocations: 0 / 0.5045 GB, free: 5.105 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003482/0.8575, allocations: 104 kB / 0.5046 GB, free: 5.004 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01884/0.8763, allocations: 5.371 MB / 0.5099 GB, free: 15.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.8764, allocations: 8.031 kB / 0.5099 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03714/0.9135, allocations: 6.888 MB / 0.5166 GB, free: 8.645 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0226/0.9362, allocations: 6.785 MB / 0.5232 GB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005994/0.9368, allocations: 394.2 kB / 0.5236 GB, free: 1.414 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002401/0.9393, allocations: 0.5075 MB / 0.5241 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2656/1.205, allocations: 12.63 MB / 0.5365 GB, free: 78.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000311/1.205, allocations: 65.72 kB / 0.5365 GB, free: 78.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001817/1.207, allocations: 243.8 kB / 0.5367 GB, free: 78.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002102/1.209, allocations: 1.044 MB / 0.5378 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02803/1.237, allocations: 10.52 MB / 0.548 GB, free: 78.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06183/1.299, allocations: 50.11 MB / 0.597 GB, free: 47.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0156/1.315, allocations: 4.807 MB / 0.6017 GB, free: 45.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.329, allocations: 7.052 MB / 0.6086 GB, free: 41.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/1.329, allocations: 51.09 kB / 0.6086 GB, free: 41.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 5.892e-06/1.329, allocations: 0 / 0.6086 GB, free: 41.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.08683/1.415, allocations: 20.3 MB / 0.6284 GB, free: 36.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/1.416, allocations: 201.1 kB / 0.6286 GB, free: 35.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008289/1.424, allocations: 3.917 MB / 0.6324 GB, free: 34.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004137/1.424, allocations: 57.64 kB / 0.6325 GB, free: 34.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002507/1.427, allocations: 3.437 MB / 0.6359 GB, free: 31.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009732/1.428, allocations: 0.8352 MB / 0.6367 GB, free: 30.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000606/1.429, allocations: 128 kB / 0.6368 GB, free: 30.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004198/1.429, allocations: 0.5837 MB / 0.6374 GB, free: 30.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004527/1.434, allocations: 2.162 MB / 0.6395 GB, free: 28.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006584/1.44, allocations: 5.89 MB / 0.6452 GB, free: 21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006439/1.447, allocations: 3.514 MB / 0.6487 GB, free: 17.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/1.447, allocations: 36 kB / 0.6487 GB, free: 17.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02035/1.467, allocations: 8.61 MB / 0.6571 GB, free: 10.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.467, allocations: 60 kB / 0.6572 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/1.467, allocations: 132 kB / 0.6573 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004111/1.472, allocations: 1.051 MB / 0.6583 GB, free: 9.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/1.477, allocations: 1.415 MB / 0.6597 GB, free: 8.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/1.49, allocations: 7.112 MB / 0.6666 GB, free: 1.801 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00636/1.496, allocations: 335.5 kB / 0.667 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/1.498, allocations: 379.1 kB / 0.6673 GB, free: 1.137 MB / 410.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 () * Number of clocked 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.009665/1.507, allocations: 2.673 MB / 0.6699 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.508, allocations: 398.8 kB / 0.6703 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/1.519, allocations: 3.655 MB / 0.6739 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.027e-05/1.519, allocations: 30.97 kB / 0.6739 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.339e-05/1.519, allocations: 8 kB / 0.6739 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.467e-05/1.519, allocations: 9.984 kB / 0.6739 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02967/1.549, allocations: 9.87 MB / 0.6836 GB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.578e-05/1.549, allocations: 8 kB / 0.6836 GB, free: 3.891 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/1.551, allocations: 353.4 kB / 0.6839 GB, free: 3.609 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004088/1.556, allocations: 0.8016 MB / 0.6847 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004196/1.556, allocations: 55.94 kB / 0.6847 GB, free: 2.898 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2583/1.814, allocations: 5.819 MB / 0.6904 GB, free: 85.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.264e-06/1.814, allocations: 6.656 kB / 0.6904 GB, free: 85.47 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/1.829, allocations: 7.01 MB / 0.6973 GB, free: 83.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002352/1.831, allocations: 0.7062 MB / 0.698 GB, free: 83.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/1.832, allocations: 44.16 kB / 0.698 GB, free: 83.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002798/1.835, allocations: 102.2 kB / 0.6981 GB, free: 83.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005677/1.836, allocations: 146.7 kB / 0.6982 GB, free: 83.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/1.836, allocations: 59.72 kB / 0.6983 GB, free: 83.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006847/1.843, allocations: 2.758 MB / 0.701 GB, free: 83.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.13e-06/1.843, allocations: 0.9688 kB / 0.701 GB, free: 83.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0081/1.851, allocations: 1.172 MB / 0.7021 GB, free: 83.69 MB / 426.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 () * Number of clocked 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.0008146/1.852, allocations: 222 kB / 0.7024 GB, free: 83.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/1.863, allocations: 5.387 MB / 0.7076 GB, free: 83.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.863, allocations: 3.812 kB / 0.7076 GB, free: 83.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003392/1.866, allocations: 1.793 MB / 0.7094 GB, free: 83.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003588/1.87, allocations: 0.5195 MB / 0.7099 GB, free: 83.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02602/1.896, allocations: 13.5 MB / 0.7231 GB, free: 78.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008161/1.904, allocations: 3.979 MB / 0.7269 GB, free: 77.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/1.906, allocations: 318.9 kB / 0.7272 GB, free: 77.31 MB / 426.7 MB Notification: Performance of SimCode: time 2.066e-06/1.906, allocations: 0 / 0.7272 GB, free: 77.31 MB / 426.7 MB Notification: Performance of Templates: time 0.1229/2.029, allocations: 86.44 MB / 0.8117 GB, free: 32.2 MB / 426.7 MB