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.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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003315/0.0003316, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08844, allocations: 44.52 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4099/0.4984, allocations: 97.78 MB / 406.8 MB, free: 12.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.4987, allocations: 96.05 kB / 406.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4369/0.9357, allocations: 111.1 MB / 0.5058 GB, free: 2.445 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.9357, allocations: 0 / 0.5058 GB, free: 2.445 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003299/0.9361, allocations: 104 kB / 0.5059 GB, free: 2.344 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.0213/0.9574, allocations: 5.371 MB / 0.5112 GB, free: 12.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.9574, allocations: 8.031 kB / 0.5112 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05047/1.008, allocations: 6.888 MB / 0.5179 GB, free: 5.984 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2889/1.297, allocations: 6.78 MB / 0.5245 GB, free: 80.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004271/1.297, allocations: 390.4 kB / 0.5249 GB, free: 80.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002472/1.3, allocations: 0.5071 MB / 0.5254 GB, free: 80.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0465/1.346, allocations: 12.68 MB / 0.5378 GB, free: 77.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000401/1.347, allocations: 63.95 kB / 0.5379 GB, free: 77.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001722/1.349, allocations: 243.6 kB / 0.5381 GB, free: 77.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003262/1.352, allocations: 1.045 MB / 0.5391 GB, free: 77.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04512/1.397, allocations: 10.52 MB / 0.5494 GB, free: 77.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07204/1.469, allocations: 50.1 MB / 0.5983 GB, free: 46.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/1.49, allocations: 4.8 MB / 0.603 GB, free: 44.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01558/1.506, allocations: 7.051 MB / 0.6099 GB, free: 40.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/1.506, allocations: 54.83 kB / 0.6099 GB, free: 40.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 5.691e-06/1.506, allocations: 2.406 kB / 0.6099 GB, free: 40.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.1116/1.618, allocations: 19.79 MB / 0.6293 GB, free: 34.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/1.618, allocations: 204.7 kB / 0.6295 GB, free: 34.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008764/1.626, allocations: 4.397 MB / 0.6337 GB, free: 32.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004897/1.627, allocations: 62.89 kB / 0.6338 GB, free: 31.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002546/1.63, allocations: 3.445 MB / 0.6372 GB, free: 28.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.631, allocations: 0.8358 MB / 0.638 GB, free: 28.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004953/1.631, allocations: 124 kB / 0.6381 GB, free: 28.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003526/1.632, allocations: 0.5757 MB / 0.6387 GB, free: 27.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004947/1.636, allocations: 2.168 MB / 0.6408 GB, free: 25.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007263/1.644, allocations: 5.914 MB / 0.6466 GB, free: 18.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007506/1.651, allocations: 3.52 MB / 0.65 GB, free: 15.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.652, allocations: 36 kB / 0.65 GB, free: 15.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02395/1.675, allocations: 8.602 MB / 0.6584 GB, free: 7.789 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.876e-05/1.676, allocations: 68.03 kB / 0.6585 GB, free: 7.723 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001743/1.676, allocations: 128 kB / 0.6586 GB, free: 7.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005436/1.681, allocations: 1.035 MB / 0.6596 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008341/1.69, allocations: 1.419 MB / 0.661 GB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0157/1.705, allocations: 7.122 MB / 0.668 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00695/1.712, allocations: 335.6 kB / 0.6683 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001418/1.714, allocations: 375.7 kB / 0.6686 GB, free: 14.61 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.006705/1.721, allocations: 2.482 MB / 0.6711 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.722, allocations: 406.8 kB / 0.6715 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.735, allocations: 3.652 MB / 0.675 GB, free: 9.047 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.247e-05/1.735, allocations: 24 kB / 0.6751 GB, free: 9.023 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/1.735, allocations: 11.23 kB / 0.6751 GB, free: 9.016 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.721e-05/1.735, allocations: 6.609 kB / 0.6751 GB, free: 9.016 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03111/1.766, allocations: 9.876 MB / 0.6847 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.881e-05/1.766, allocations: 4 kB / 0.6847 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003323/1.77, allocations: 354.3 kB / 0.6851 GB, free: 0.582 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005292/1.775, allocations: 0.8043 MB / 0.6858 GB, free: 32 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2801/2.055, allocations: 42.39 kB / 0.6859 GB, free: 86.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/2.07, allocations: 5.826 MB / 0.6916 GB, free: 85.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/2.07, allocations: 9.344 kB / 0.6916 GB, free: 85.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01744/2.087, allocations: 6.326 MB / 0.6978 GB, free: 84.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002542/2.09, allocations: 0.706 MB / 0.6984 GB, free: 84.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/2.091, allocations: 42.23 kB / 0.6985 GB, free: 84.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003499/2.095, allocations: 96.8 kB / 0.6986 GB, free: 84.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005406/2.095, allocations: 148 kB / 0.6987 GB, free: 84.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/2.095, allocations: 66.83 kB / 0.6988 GB, free: 84.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00698/2.102, allocations: 2.754 MB / 0.7015 GB, free: 84.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.102, allocations: 1.188 kB / 0.7015 GB, free: 84.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007817/2.11, allocations: 1.172 MB / 0.7026 GB, free: 84.36 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.0007495/2.111, allocations: 230.9 kB / 0.7028 GB, free: 84.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01232/2.123, allocations: 5.387 MB / 0.7081 GB, free: 84.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/2.124, allocations: 0 / 0.7081 GB, free: 84.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004158/2.128, allocations: 1.791 MB / 0.7098 GB, free: 83.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/2.132, allocations: 0.5125 MB / 0.7103 GB, free: 83.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02876/2.16, allocations: 13.54 MB / 0.7236 GB, free: 78.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007892/2.168, allocations: 3.981 MB / 0.7275 GB, free: 77.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/2.17, allocations: 314.7 kB / 0.7278 GB, free: 77.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.763e-06/2.17, allocations: 0 / 0.7278 GB, free: 77.98 MB / 426.7 MB Notification: Performance of Templates: time 0.1623/2.332, allocations: 86.44 MB / 0.8122 GB, free: 31.38 MB / 426.7 MB