Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09861, allocations: 44.49 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5054/0.6041, allocations: 97.8 MB / 406.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.6044, allocations: 94.39 kB / 406.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4773/1.082, allocations: 111.1 MB / 0.5059 GB, free: 1.789 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.082, allocations: 0 / 0.5059 GB, free: 1.789 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004329/1.082, allocations: 104 kB / 0.506 GB, free: 1.688 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.0238/1.106, allocations: 5.363 MB / 0.5113 GB, free: 12.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/1.106, allocations: 8.031 kB / 0.5113 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05162/1.158, allocations: 6.892 MB / 0.518 GB, free: 5.332 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3593/1.517, allocations: 6.782 MB / 0.5246 GB, free: 81.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007681/1.518, allocations: 393 kB / 0.525 GB, free: 81.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003828/1.522, allocations: 0.509 MB / 0.5255 GB, free: 81.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05699/1.579, allocations: 12.63 MB / 0.5378 GB, free: 78.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005145/1.579, allocations: 63.81 kB / 0.5379 GB, free: 78.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003014/1.582, allocations: 247.8 kB / 0.5381 GB, free: 78.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002725/1.585, allocations: 1.047 MB / 0.5392 GB, free: 78.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03409/1.619, allocations: 10.52 MB / 0.5494 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08033/1.7, allocations: 50.1 MB / 0.5984 GB, free: 46.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03011/1.73, allocations: 4.802 MB / 0.603 GB, free: 44.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0237/1.754, allocations: 7.045 MB / 0.6099 GB, free: 41.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.69e-05/1.754, allocations: 57.58 kB / 0.61 GB, free: 41.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 8.035e-06/1.754, allocations: 0 / 0.61 GB, free: 41.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.1367/1.891, allocations: 19.8 MB / 0.6293 GB, free: 35.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/1.891, allocations: 206.1 kB / 0.6295 GB, free: 35.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009935/1.901, allocations: 4.399 MB / 0.6338 GB, free: 31.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005087/1.901, allocations: 62.41 kB / 0.6339 GB, free: 31.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003287/1.905, allocations: 3.555 MB / 0.6373 GB, free: 28.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/1.906, allocations: 0.8369 MB / 0.6382 GB, free: 27.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007792/1.907, allocations: 128 kB / 0.6383 GB, free: 27.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004219/1.907, allocations: 0.5753 MB / 0.6388 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005358/1.912, allocations: 2.159 MB / 0.6409 GB, free: 25.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008039/1.92, allocations: 5.892 MB / 0.6467 GB, free: 18.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007911/1.928, allocations: 3.515 MB / 0.6501 GB, free: 14.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001079/1.929, allocations: 36 kB / 0.6502 GB, free: 14.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02482/1.953, allocations: 8.772 MB / 0.6587 GB, free: 7.246 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.738e-05/1.954, allocations: 60 kB / 0.6588 GB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/1.954, allocations: 135.3 kB / 0.6589 GB, free: 7.059 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005519/1.959, allocations: 1.032 MB / 0.6599 GB, free: 6.281 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008417/1.968, allocations: 1.424 MB / 0.6613 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01725/1.985, allocations: 7.188 MB / 0.6683 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006975/1.992, allocations: 333.2 kB / 0.6687 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001493/1.994, allocations: 382.9 kB / 0.669 GB, free: 14.25 MB / 426.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.007277/2.001, allocations: 2.48 MB / 0.6714 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/2.002, allocations: 410.7 kB / 0.6718 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01376/2.016, allocations: 3.645 MB / 0.6754 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.844e-05/2.016, allocations: 24 kB / 0.6754 GB, free: 8.676 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/2.016, allocations: 8 kB / 0.6754 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.292e-05/2.016, allocations: 10.59 kB / 0.6754 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03559/2.052, allocations: 9.869 MB / 0.6851 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-05/2.052, allocations: 8.656 kB / 0.6851 GB, free: 368 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003397/2.055, allocations: 355.5 kB / 0.6854 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3407/2.396, allocations: 0.8009 MB / 0.6862 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004735/2.396, allocations: 46.81 kB / 0.6862 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/2.411, allocations: 5.823 MB / 0.6919 GB, free: 84.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/2.411, allocations: 16.27 kB / 0.6919 GB, free: 84.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01853/2.429, allocations: 6.316 MB / 0.6981 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002812/2.432, allocations: 0.7062 MB / 0.6988 GB, free: 84.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00139/2.434, allocations: 43.47 kB / 0.6988 GB, free: 84.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00342/2.437, allocations: 99.89 kB / 0.6989 GB, free: 84.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006446/2.438, allocations: 150.4 kB / 0.6991 GB, free: 84.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/2.438, allocations: 67.39 kB / 0.6992 GB, free: 84.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008184/2.446, allocations: 2.754 MB / 0.7018 GB, free: 84.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.446, allocations: 0 / 0.7018 GB, free: 84.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008148/2.454, allocations: 1.174 MB / 0.703 GB, free: 84.02 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.0009871/2.455, allocations: 228.7 kB / 0.7032 GB, free: 83.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01261/2.468, allocations: 5.387 MB / 0.7085 GB, free: 83.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/2.468, allocations: 0 / 0.7085 GB, free: 83.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005593/2.474, allocations: 1.791 MB / 0.7102 GB, free: 83.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006368/2.48, allocations: 0.5083 MB / 0.7107 GB, free: 83.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04205/2.522, allocations: 12.95 MB / 0.7234 GB, free: 78.49 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01396/2.536, allocations: 3.974 MB / 0.7272 GB, free: 77.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01123/2.548, allocations: 1.934 MB / 0.7291 GB, free: 77.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/2.549, allocations: 274.1 kB / 0.7294 GB, free: 77.62 MB / 426.7 MB Notification: Performance of SimCode: time 1.743e-06/2.549, allocations: 0 / 0.7294 GB, free: 77.62 MB / 426.7 MB Notification: Performance of Templates: time 0.1401/2.689, allocations: 41.39 MB / 0.7698 GB, free: 73.13 MB / 426.7 MB