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.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.583/1.583, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.191e-05, allocations: 7.984 kB / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2081, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.3415, allocations: 88.4 MB / 356 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.3418, allocations: 79.95 kB / 356.1 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6353/0.9772, allocations: 126.2 MB / 482.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.9772, allocations: 4 kB / 482.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003724/0.9776, allocations: 116 kB / 482.4 MB, free: 12.12 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02207/0.9997, allocations: 6.325 MB / 488.7 MB, free: 5.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.9998, allocations: 12.03 kB / 488.7 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2548/1.255, allocations: 8.313 MB / 497.1 MB, free: 50.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0227/1.277, allocations: 7.259 MB / 0.4925 GB, free: 50.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005762/1.278, allocations: 447.6 kB / 0.4929 GB, free: 50.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002968/1.281, allocations: 0.5822 MB / 0.4935 GB, free: 50.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03899/1.32, allocations: 15.59 MB / 0.5087 GB, free: 47.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003872/1.32, allocations: 74.56 kB / 0.5088 GB, free: 47.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002684/1.323, allocations: 286.6 kB / 0.5091 GB, free: 47.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002938/1.326, allocations: 1.613 MB / 0.5106 GB, free: 47.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/1.359, allocations: 13.75 MB / 0.5241 GB, free: 47.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08795/1.447, allocations: 63.97 MB / 0.5865 GB, free: 16.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01885/1.466, allocations: 6.378 MB / 0.5928 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006753/1.473, allocations: 3.46 MB / 0.5961 GB, free: 7.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03462/1.508, allocations: 14.47 MB / 0.6103 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.181e-05/1.508, allocations: 64.56 kB / 0.6103 GB, free: 10.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 8.127e-06/1.508, allocations: 0 / 0.6103 GB, free: 10.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=336): time 0.3505/1.858, allocations: 30.48 MB / 0.6401 GB, free: 75.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/1.859, allocations: 221.4 kB / 0.6403 GB, free: 75.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/1.869, allocations: 4.757 MB / 0.645 GB, free: 75.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007135/1.87, allocations: 75.92 kB / 0.645 GB, free: 75.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00326/1.874, allocations: 4.287 MB / 0.6492 GB, free: 73.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001759/1.875, allocations: 1.245 MB / 0.6504 GB, free: 72.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/1.877, allocations: 175.3 kB / 0.6506 GB, free: 72.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0009455/1.878, allocations: 0.6902 MB / 0.6513 GB, free: 72.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008785/1.886, allocations: 4.455 MB / 0.6556 GB, free: 71.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01165/1.898, allocations: 9.405 MB / 0.6648 GB, free: 65.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/1.91, allocations: 6.383 MB / 0.671 GB, free: 65.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001784/1.91, allocations: 51.38 kB / 0.6711 GB, free: 65.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05196/1.962, allocations: 18.32 MB / 0.689 GB, free: 61.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/1.962, allocations: 76.25 kB / 0.689 GB, free: 61.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002345/1.963, allocations: 174.5 kB / 0.6892 GB, free: 61.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02669/1.989, allocations: 5.639 MB / 0.6947 GB, free: 60.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009301/1.999, allocations: 2.045 MB / 0.6967 GB, free: 59.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03974/2.039, allocations: 23.62 MB / 0.7198 GB, free: 44.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009634/2.048, allocations: 0.5393 MB / 0.7203 GB, free: 44.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001929/2.05, allocations: 0.503 MB / 0.7208 GB, free: 43.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003075/2.053, allocations: 0.7466 MB / 0.7215 GB, free: 43.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/2.055, allocations: 0.4936 MB / 0.722 GB, free: 42.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0372/2.092, allocations: 12.26 MB / 0.734 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/2.092, allocations: 57.2 kB / 0.734 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.268e-05/2.092, allocations: 15.84 kB / 0.7341 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.87e-05/2.092, allocations: 16.69 kB / 0.7341 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06359/2.156, allocations: 23.85 MB / 0.7574 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.611e-05/2.156, allocations: 8 kB / 0.7574 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00378/2.16, allocations: 0.5655 MB / 0.7579 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2518/2.412, allocations: 4.637 MB / 0.7624 GB, free: 67.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000721/2.412, allocations: 56.47 kB / 0.7625 GB, free: 67.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03117/2.443, allocations: 18.92 MB / 0.781 GB, free: 64.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.059e-06/2.444, allocations: 7.375 kB / 0.781 GB, free: 64.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04293/2.486, allocations: 17.26 MB / 0.7978 GB, free: 62.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003722/2.49, allocations: 1.212 MB / 0.799 GB, free: 62.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001651/2.492, allocations: 56.25 kB / 0.7991 GB, free: 62.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004527/2.497, allocations: 248.9 kB / 0.7993 GB, free: 62.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00116/2.498, allocations: 194.6 kB / 0.7995 GB, free: 62.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000557/2.498, allocations: 78.44 kB / 0.7996 GB, free: 62.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007888/2.506, allocations: 3.303 MB / 0.8028 GB, free: 61.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.982e-06/2.506, allocations: 0 / 0.8028 GB, free: 61.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01051/2.517, allocations: 1.703 MB / 0.8045 GB, free: 61.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/2.518, allocations: 217.6 kB / 0.8047 GB, free: 60.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.019/2.537, allocations: 10.31 MB / 0.8147 GB, free: 57.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/2.537, allocations: 0 / 0.8147 GB, free: 57.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007356/2.544, allocations: 3.909 MB / 0.8186 GB, free: 55.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/2.549, allocations: 0.5846 MB / 0.8191 GB, free: 55.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03335/2.582, allocations: 14.13 MB / 0.8329 GB, free: 50.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.593, allocations: 4.76 MB / 0.8376 GB, free: 47.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002526/2.595, allocations: 419.8 kB / 0.838 GB, free: 47.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.545e-06/2.595, allocations: 0 / 0.838 GB, free: 47.05 MB / 378.7 MB Notification: Performance of Templates: time 0.4349/3.03, allocations: 142 MB / 0.9766 GB, free: 50.72 MB / 394.7 MB