Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.641/1.641, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07936/0.07973, allocations: 38.78 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3837/0.4635, allocations: 88.48 MB / 361 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.4639, allocations: 91.27 kB / 361.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.754/1.218, allocations: 126.9 MB / 488 MB, free: 70.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.218, allocations: 0 / 488 MB, free: 70.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004725/1.219, allocations: 112.4 kB / 488.1 MB, free: 70.33 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.02967/1.248, allocations: 6.779 MB / 494.9 MB, free: 66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/1.248, allocations: 9.656 kB / 494.9 MB, free: 66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05925/1.308, allocations: 8.308 MB / 0.4914 GB, free: 58.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02668/1.334, allocations: 7.295 MB / 0.4985 GB, free: 51.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000557/1.335, allocations: 451.2 kB / 0.499 GB, free: 51.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00381/1.339, allocations: 0.5815 MB / 0.4995 GB, free: 50.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04648/1.385, allocations: 15.74 MB / 0.5149 GB, free: 33.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004208/1.386, allocations: 71.31 kB / 0.515 GB, free: 33.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003386/1.389, allocations: 281.5 kB / 0.5153 GB, free: 33.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003195/1.392, allocations: 1.615 MB / 0.5168 GB, free: 31.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04017/1.433, allocations: 13.95 MB / 0.5305 GB, free: 17.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4175/1.85, allocations: 63.97 MB / 0.5929 GB, free: 36.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/1.874, allocations: 6.415 MB / 0.5992 GB, free: 35.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0361/1.91, allocations: 14.34 MB / 0.6132 GB, free: 31.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.474e-05/1.91, allocations: 63.81 kB / 0.6133 GB, free: 31.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 8.096e-06/1.91, allocations: 0 / 0.6133 GB, free: 31.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.2679/2.178, allocations: 42.37 MB / 0.6546 GB, free: 22.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/2.178, allocations: 216.8 kB / 0.6548 GB, free: 22.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/2.19, allocations: 5.401 MB / 0.6601 GB, free: 17.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009631/2.191, allocations: 74.33 kB / 0.6602 GB, free: 17.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004031/2.195, allocations: 4.288 MB / 0.6644 GB, free: 14.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00205/2.197, allocations: 1.244 MB / 0.6656 GB, free: 12.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001158/2.198, allocations: 175.4 kB / 0.6658 GB, free: 12.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005222/2.199, allocations: 0.6897 MB / 0.6664 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01048/2.209, allocations: 4.529 MB / 0.6708 GB, free: 8.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01504/2.224, allocations: 9.515 MB / 0.6801 GB, free: 13.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01685/2.241, allocations: 6.413 MB / 0.6864 GB, free: 7.367 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001837/2.242, allocations: 52 kB / 0.6865 GB, free: 7.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.0949/2.336, allocations: 18.48 MB / 0.7045 GB, free: 5.129 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002403/2.337, allocations: 80 kB / 0.7046 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004311/2.337, allocations: 172 kB / 0.7047 GB, free: 4.883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3266/2.664, allocations: 5.633 MB / 0.7102 GB, free: 98.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01403/2.678, allocations: 2.045 MB / 0.7122 GB, free: 98.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05421/2.732, allocations: 24.26 MB / 0.7359 GB, free: 93.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01169/2.744, allocations: 0.547 MB / 0.7365 GB, free: 93.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002547/2.747, allocations: 0.5035 MB / 0.737 GB, free: 93.69 MB / 394.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 () * Number of clocked 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.009667/2.756, allocations: 3.092 MB / 0.74 GB, free: 92.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/2.758, allocations: 0.4909 MB / 0.7405 GB, free: 92.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06033/2.818, allocations: 12.33 MB / 0.7525 GB, free: 88.65 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001343/2.819, allocations: 62.95 kB / 0.7526 GB, free: 88.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.588e-05/2.819, allocations: 7.281 kB / 0.7526 GB, free: 88.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.848e-05/2.819, allocations: 17.78 kB / 0.7526 GB, free: 88.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08709/2.906, allocations: 23.94 MB / 0.776 GB, free: 79.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.164e-05/2.906, allocations: 3.656 kB / 0.776 GB, free: 79.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005605/2.912, allocations: 0.565 MB / 0.7765 GB, free: 79.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03468/2.946, allocations: 4.652 MB / 0.7811 GB, free: 78.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/2.947, allocations: 56.38 kB / 0.7811 GB, free: 78.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04026/2.988, allocations: 19.56 MB / 0.8002 GB, free: 61.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/2.988, allocations: 4 kB / 0.8002 GB, free: 61.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0579/3.046, allocations: 16.65 MB / 0.8165 GB, free: 45.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004532/3.05, allocations: 1.211 MB / 0.8177 GB, free: 44.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002205/3.052, allocations: 59.48 kB / 0.8177 GB, free: 44.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00931/3.062, allocations: 251.7 kB / 0.818 GB, free: 44.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002271/3.064, allocations: 192.9 kB / 0.8181 GB, free: 44.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001924/3.066, allocations: 84.69 kB / 0.8182 GB, free: 44.17 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01117/3.077, allocations: 3.349 MB / 0.8215 GB, free: 40.85 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.242e-06/3.077, allocations: 0 / 0.8215 GB, free: 40.85 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01163/3.089, allocations: 1.7 MB / 0.8232 GB, free: 39.16 MB / 394.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 () * Number of clocked 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.001272/3.09, allocations: 219.5 kB / 0.8234 GB, free: 38.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02305/3.113, allocations: 10.43 MB / 0.8336 GB, free: 28.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/3.113, allocations: 0 / 0.8336 GB, free: 28.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008713/3.122, allocations: 3.936 MB / 0.8374 GB, free: 24.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005074/3.127, allocations: 0.5641 MB / 0.8379 GB, free: 24.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3433/3.471, allocations: 19.04 MB / 0.8565 GB, free: 92.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01473/3.485, allocations: 4.748 MB / 0.8612 GB, free: 91.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003408/3.489, allocations: 416.7 kB / 0.8616 GB, free: 91.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.174e-06/3.489, allocations: 0 / 0.8616 GB, free: 91.8 MB / 394.7 MB Notification: Performance of Templates: time 0.5461/4.035, allocations: 142 MB / 1 GB, free: 92.21 MB / 394.7 MB