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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.626/1.626, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.041e-05, allocations: 8 kB / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07011/0.07016, allocations: 38.77 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3152/0.3854, allocations: 91.31 MB / 352.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.3857, allocations: 88.94 kB / 352.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5737/0.9594, allocations: 108 MB / 460.7 MB, free: 77.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.841e-06/0.9595, allocations: 0 / 460.7 MB, free: 77.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002717/0.9598, allocations: 104.4 kB / 460.8 MB, free: 77.51 MB / 346.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.0143/0.9741, allocations: 4.917 MB / 465.7 MB, free: 75.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.9741, allocations: 9.344 kB / 465.7 MB, free: 75.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03479/1.009, allocations: 6.901 MB / 472.6 MB, free: 73.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01927/1.028, allocations: 6.743 MB / 479.3 MB, free: 70.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002664/1.029, allocations: 167.9 kB / 479.5 MB, free: 70.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001879/1.03, allocations: 317.3 kB / 479.8 MB, free: 70.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01459/1.045, allocations: 7.485 MB / 487.3 MB, free: 63.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02074/1.066, allocations: 10.63 MB / 497.9 MB, free: 51.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002264/1.066, allocations: 55.47 kB / 498 MB, free: 51.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001067/1.067, allocations: 32 kB / 498 MB, free: 51.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00163/1.069, allocations: 1.051 MB / 499.1 MB, free: 50.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05656/1.125, allocations: 48.37 MB / 0.5346 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2059/1.331, allocations: 3.134 MB / 0.5377 GB, free: 71.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003035/1.334, allocations: 1.788 MB / 0.5394 GB, free: 71.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001403/1.336, allocations: 1.215 MB / 0.5406 GB, free: 69.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/1.336, allocations: 53.97 kB / 0.5406 GB, free: 69.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=185): time 6.983e-06/1.336, allocations: 0 / 0.5406 GB, free: 69.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=233): time 0.05584/1.392, allocations: 16.15 MB / 0.5564 GB, free: 67.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/1.392, allocations: 203.5 kB / 0.5566 GB, free: 67.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006604/1.399, allocations: 3.455 MB / 0.56 GB, free: 66.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003769/1.399, allocations: 25.7 kB / 0.56 GB, free: 66.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00243/1.401, allocations: 3.525 MB / 0.5635 GB, free: 64.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009792/1.402, allocations: 0.841 MB / 0.5643 GB, free: 64.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/1.403, allocations: 0 / 0.5643 GB, free: 64.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004414/1.403, allocations: 0.5874 MB / 0.5649 GB, free: 63.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003901/1.407, allocations: 2.042 MB / 0.5668 GB, free: 63.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006059/1.413, allocations: 5.894 MB / 0.5726 GB, free: 57.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006256/1.42, allocations: 3.485 MB / 0.576 GB, free: 56.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/1.42, allocations: 45.23 kB / 0.576 GB, free: 56.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01982/1.44, allocations: 7.857 MB / 0.5837 GB, free: 54.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/1.44, allocations: 65.31 kB / 0.5838 GB, free: 54.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000161/1.44, allocations: 136.8 kB / 0.5839 GB, free: 54.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004094/1.444, allocations: 1.028 MB / 0.5849 GB, free: 54.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006082/1.45, allocations: 1.474 MB / 0.5864 GB, free: 53.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/1.462, allocations: 6.508 MB / 0.5927 GB, free: 50.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006203/1.468, allocations: 214.9 kB / 0.5929 GB, free: 50.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001335/1.469, allocations: 396.4 kB / 0.5933 GB, free: 50.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (801): * Single equations (assignments): 797 * 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.001498/1.471, allocations: 457.1 kB / 0.5937 GB, free: 49.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008181/1.472, allocations: 391.8 kB / 0.5941 GB, free: 49.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00864/1.48, allocations: 3.438 MB / 0.5975 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.996e-05/1.481, allocations: 26.27 kB / 0.5975 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/1.481, allocations: 7.25 kB / 0.5975 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-05/1.481, allocations: 16.14 kB / 0.5975 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02202/1.503, allocations: 8.935 MB / 0.6062 GB, free: 42.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-05/1.503, allocations: 8 kB / 0.6062 GB, free: 42.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002084/1.505, allocations: 370.2 kB / 0.6066 GB, free: 42.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003428/1.508, allocations: 0.7927 MB / 0.6074 GB, free: 41.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003752/1.509, allocations: 15.23 kB / 0.6074 GB, free: 41.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008587/1.517, allocations: 5.241 MB / 0.6125 GB, free: 37.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/1.517, allocations: 8 kB / 0.6125 GB, free: 37.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/1.529, allocations: 6.895 MB / 0.6192 GB, free: 30.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/1.531, allocations: 0.6915 MB / 0.6199 GB, free: 30.13 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007006/1.532, allocations: 15.25 kB / 0.6199 GB, free: 30.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/1.534, allocations: 67.05 kB / 0.62 GB, free: 30.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004269/1.535, allocations: 151.1 kB / 0.6201 GB, free: 29.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002116/1.535, allocations: 65.17 kB / 0.6202 GB, free: 29.92 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004361/1.539, allocations: 2.346 MB / 0.6225 GB, free: 27.87 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.68e-07/1.539, allocations: 0 / 0.6225 GB, free: 27.87 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007276/1.546, allocations: 1.008 MB / 0.6235 GB, free: 26.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (185): * Single equations (assignments): 181 * 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.0006807/1.547, allocations: 194.7 kB / 0.6237 GB, free: 26.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008664/1.556, allocations: 5.08 MB / 0.6286 GB, free: 22.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.396e-06/1.556, allocations: 0 / 0.6286 GB, free: 22.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/1.56, allocations: 1.723 MB / 0.6303 GB, free: 20.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004598/1.565, allocations: 452.2 kB / 0.6307 GB, free: 20.1 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03259/1.597, allocations: 9.529 MB / 0.64 GB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01223/1.609, allocations: 3.979 MB / 0.6439 GB, free: 8.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002073/1.612, allocations: 314.4 kB / 0.6442 GB, free: 8.242 MB / 346.7 MB Notification: Performance of SimCode: time 2.216e-06/1.612, allocations: 0 / 0.6442 GB, free: 8.242 MB / 346.7 MB Notification: Performance of Templates: time 0.3851/1.997, allocations: 84.66 MB / 0.7269 GB, free: 57.12 MB / 362.7 MB