Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003745/0.0003746, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08248/0.08288, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.4839, allocations: 94.23 MB / 402.7 MB, free: 18.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.4842, allocations: 91.2 kB / 402.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4769/0.9611, allocations: 126.1 MB / 0.5165 GB, free: 8.676 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.791e-06/0.9612, allocations: 3.938 kB / 0.5165 GB, free: 8.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003808/0.9616, allocations: 120 kB / 0.5166 GB, free: 8.555 MB / 410.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.02426/0.9858, allocations: 6.771 MB / 0.5232 GB, free: 1.703 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.9859, allocations: 12.02 kB / 0.5232 GB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2857/1.272, allocations: 8.297 MB / 0.5313 GB, free: 73.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/1.295, allocations: 7.291 MB / 0.5384 GB, free: 73.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005977/1.296, allocations: 446.8 kB / 0.5389 GB, free: 73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002924/1.299, allocations: 0.5817 MB / 0.5394 GB, free: 73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03856/1.337, allocations: 15.7 MB / 0.5547 GB, free: 69.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003663/1.338, allocations: 74.81 kB / 0.5548 GB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002717/1.34, allocations: 281.3 kB / 0.5551 GB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002881/1.343, allocations: 1.619 MB / 0.5567 GB, free: 69.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03365/1.377, allocations: 13.95 MB / 0.5703 GB, free: 69.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08503/1.462, allocations: 63.97 MB / 0.6328 GB, free: 26.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01804/1.48, allocations: 6.441 MB / 0.6391 GB, free: 23.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02693/1.507, allocations: 14.33 MB / 0.653 GB, free: 26.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/1.507, allocations: 56.56 kB / 0.6531 GB, free: 26.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.722e-06/1.507, allocations: 3.969 kB / 0.6531 GB, free: 26.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.4693/1.976, allocations: 42.13 MB / 0.6942 GB, free: 83.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/1.977, allocations: 218.8 kB / 0.6945 GB, free: 82.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01083/1.987, allocations: 4.808 MB / 0.6991 GB, free: 82.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007094/1.988, allocations: 72.64 kB / 0.6992 GB, free: 82.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003257/1.991, allocations: 4.286 MB / 0.7034 GB, free: 80.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001744/1.993, allocations: 1.245 MB / 0.7046 GB, free: 80.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/1.994, allocations: 170.1 kB / 0.7048 GB, free: 80.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006929/1.995, allocations: 0.6862 MB / 0.7055 GB, free: 79.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009089/2.004, allocations: 4.532 MB / 0.7099 GB, free: 79.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01166/2.016, allocations: 9.481 MB / 0.7191 GB, free: 73.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/2.028, allocations: 6.422 MB / 0.7254 GB, free: 73.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001625/2.028, allocations: 51.34 kB / 0.7255 GB, free: 73.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05212/2.08, allocations: 18.48 MB / 0.7435 GB, free: 69.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/2.08, allocations: 78.91 kB / 0.7436 GB, free: 69.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002264/2.081, allocations: 176 kB / 0.7437 GB, free: 69.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02778/2.108, allocations: 5.626 MB / 0.7492 GB, free: 69.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009516/2.118, allocations: 2.047 MB / 0.7512 GB, free: 68.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04135/2.159, allocations: 24.28 MB / 0.775 GB, free: 57.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009673/2.169, allocations: 0.5361 MB / 0.7755 GB, free: 57.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001915/2.171, allocations: 0.5029 MB / 0.776 GB, free: 57.3 MB / 426.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.008/2.179, allocations: 3.082 MB / 0.779 GB, free: 55.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/2.18, allocations: 0.5049 MB / 0.7795 GB, free: 55.63 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03703/2.218, allocations: 12.34 MB / 0.7915 GB, free: 48.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/2.218, allocations: 51.28 kB / 0.7916 GB, free: 48.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.857e-05/2.218, allocations: 8 kB / 0.7916 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.997e-05/2.218, allocations: 22.16 kB / 0.7916 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08043/2.298, allocations: 23.93 MB / 0.815 GB, free: 29.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-05/2.298, allocations: 11.12 kB / 0.815 GB, free: 29.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003588/2.302, allocations: 0.5681 MB / 0.8155 GB, free: 29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02231/2.324, allocations: 4.644 MB / 0.8201 GB, free: 24.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007376/2.325, allocations: 56 kB / 0.8201 GB, free: 24.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3301/2.655, allocations: 19.57 MB / 0.8392 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/2.655, allocations: 7.656 kB / 0.8392 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0442/2.699, allocations: 17.36 MB / 0.8562 GB, free: 70.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003777/2.703, allocations: 1.215 MB / 0.8574 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001768/2.705, allocations: 59.28 kB / 0.8574 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004532/2.71, allocations: 248.3 kB / 0.8577 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/2.711, allocations: 193.7 kB / 0.8579 GB, free: 70.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004231/2.711, allocations: 82.81 kB / 0.8579 GB, free: 70.51 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007761/2.719, allocations: 3.353 MB / 0.8612 GB, free: 70.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.242e-06/2.719, allocations: 0 / 0.8612 GB, free: 70.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01226/2.731, allocations: 1.706 MB / 0.8629 GB, free: 70.33 MB / 426.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.001124/2.733, allocations: 205.8 kB / 0.8631 GB, free: 70.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.024/2.757, allocations: 10.44 MB / 0.8733 GB, free: 70.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.429e-06/2.757, allocations: 3.75 kB / 0.8733 GB, free: 70.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007606/2.764, allocations: 3.945 MB / 0.8771 GB, free: 69.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004091/2.768, allocations: 0.5724 MB / 0.8777 GB, free: 69.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03461/2.803, allocations: 18.97 MB / 0.8962 GB, free: 61.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01004/2.813, allocations: 4.754 MB / 0.9009 GB, free: 59.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002352/2.815, allocations: 412.1 kB / 0.9012 GB, free: 59.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.871e-06/2.816, allocations: 5.938 kB / 0.9013 GB, free: 59.93 MB / 426.7 MB Notification: Performance of Templates: time 0.4598/3.275, allocations: 142 MB / 1.04 GB, free: 88.98 MB / 442.7 MB