Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005139/0.0005141, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09686, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3807/0.4776, allocations: 88.5 MB / 361.1 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.478, allocations: 89.08 kB / 361.2 MB, free: 1.098 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.838/1.316, allocations: 126.9 MB / 488.1 MB, free: 70.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.316, allocations: 0 / 488.1 MB, free: 70.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005762/1.317, allocations: 125.9 kB / 488.2 MB, free: 70.49 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.03613/1.353, allocations: 6.776 MB / 495 MB, free: 66.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/1.353, allocations: 7.125 kB / 495 MB, free: 66.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08209/1.435, allocations: 8.305 MB / 0.4915 GB, free: 58.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0366/1.472, allocations: 7.293 MB / 0.4986 GB, free: 51.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007847/1.473, allocations: 452.3 kB / 0.4991 GB, free: 50.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004768/1.477, allocations: 0.586 MB / 0.4996 GB, free: 50.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06444/1.542, allocations: 15.69 MB / 0.515 GB, free: 33.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006124/1.543, allocations: 75.3 kB / 0.515 GB, free: 33.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004608/1.547, allocations: 285.6 kB / 0.5153 GB, free: 33.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004929/1.552, allocations: 1.613 MB / 0.5169 GB, free: 31.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05762/1.61, allocations: 13.95 MB / 0.5305 GB, free: 17.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5459/2.156, allocations: 63.97 MB / 0.593 GB, free: 36.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03229/2.188, allocations: 6.431 MB / 0.5992 GB, free: 35.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04182/2.23, allocations: 14.33 MB / 0.6132 GB, free: 32.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.297e-05/2.23, allocations: 62.66 kB / 0.6133 GB, free: 32.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.334e-06/2.23, allocations: 0 / 0.6133 GB, free: 32.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.2692/2.499, allocations: 42.37 MB / 0.6547 GB, free: 22.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.721e-05/2.5, allocations: 214 kB / 0.6549 GB, free: 22.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01306/2.513, allocations: 5.403 MB / 0.6602 GB, free: 18.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009128/2.514, allocations: 74.48 kB / 0.6602 GB, free: 17.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004073/2.518, allocations: 4.418 MB / 0.6645 GB, free: 14.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002084/2.52, allocations: 1.24 MB / 0.6658 GB, free: 12.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/2.521, allocations: 176 kB / 0.6659 GB, free: 12.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007367/2.522, allocations: 0.6843 MB / 0.6666 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01069/2.533, allocations: 4.533 MB / 0.671 GB, free: 8.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01501/2.548, allocations: 9.482 MB / 0.6803 GB, free: 13.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/2.564, allocations: 6.411 MB / 0.6865 GB, free: 7.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001729/2.565, allocations: 48 kB / 0.6866 GB, free: 7.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07998/2.645, allocations: 18.65 MB / 0.7048 GB, free: 4.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001741/2.645, allocations: 80 kB / 0.7049 GB, free: 4.691 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003205/2.645, allocations: 176.1 kB / 0.705 GB, free: 4.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3335/2.979, allocations: 5.625 MB / 0.7105 GB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01434/2.993, allocations: 2.049 MB / 0.7125 GB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06073/3.054, allocations: 24.26 MB / 0.7362 GB, free: 93.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01168/3.066, allocations: 0.5407 MB / 0.7368 GB, free: 93.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002329/3.068, allocations: 0.5031 MB / 0.7372 GB, free: 93.72 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.009262/3.077, allocations: 3.099 MB / 0.7403 GB, free: 92.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/3.079, allocations: 0.4888 MB / 0.7408 GB, free: 92.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05445/3.133, allocations: 12.34 MB / 0.7528 GB, free: 88.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001217/3.134, allocations: 50.75 kB / 0.7529 GB, free: 88.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.501e-05/3.134, allocations: 9.375 kB / 0.7529 GB, free: 88.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.582e-05/3.134, allocations: 18.52 kB / 0.7529 GB, free: 88.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08667/3.22, allocations: 23.93 MB / 0.7762 GB, free: 79.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.849e-05/3.221, allocations: 11.66 kB / 0.7763 GB, free: 79.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005597/3.226, allocations: 0.5641 MB / 0.7768 GB, free: 79.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0353/3.261, allocations: 4.646 MB / 0.7813 GB, free: 78.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001001/3.263, allocations: 61.27 kB / 0.7814 GB, free: 78.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04024/3.303, allocations: 19.56 MB / 0.8005 GB, free: 61.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/3.303, allocations: 6.109 kB / 0.8005 GB, free: 61.76 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05852/3.361, allocations: 16.65 MB / 0.8168 GB, free: 45.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00492/3.366, allocations: 1.211 MB / 0.818 GB, free: 44.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002318/3.369, allocations: 57.08 kB / 0.818 GB, free: 44.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0064/3.375, allocations: 247.6 kB / 0.8183 GB, free: 44.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001556/3.377, allocations: 193 kB / 0.8184 GB, free: 43.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006069/3.377, allocations: 85.73 kB / 0.8185 GB, free: 43.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009731/3.387, allocations: 3.345 MB / 0.8218 GB, free: 40.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.033e-06/3.387, allocations: 0 / 0.8218 GB, free: 40.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01188/3.399, allocations: 1.702 MB / 0.8234 GB, free: 38.81 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.001358/3.401, allocations: 219.3 kB / 0.8237 GB, free: 38.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02363/3.424, allocations: 10.43 MB / 0.8338 GB, free: 28.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/3.424, allocations: 0 / 0.8338 GB, free: 28.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008739/3.433, allocations: 3.93 MB / 0.8377 GB, free: 24.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005143/3.438, allocations: 0.5793 MB / 0.8382 GB, free: 23.85 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3176/3.756, allocations: 18.33 MB / 0.8561 GB, free: 92.69 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01279/3.769, allocations: 4.745 MB / 0.8608 GB, free: 91.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.01418/3.783, allocations: 2.986 MB / 0.8637 GB, free: 91.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002721/3.786, allocations: 349.1 kB / 0.864 GB, free: 91.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.352e-06/3.786, allocations: 0 / 0.864 GB, free: 91.78 MB / 394.7 MB Notification: Performance of Templates: time 0.1883/3.974, allocations: 73.24 MB / 0.9355 GB, free: 56.43 MB / 394.7 MB