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.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003519, allocations: 11.98 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08357/0.08394, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.4917, allocations: 92.05 MB / 364.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003311/0.4921, allocations: 92.89 kB / 364.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7127/1.205, allocations: 111.2 MB / 475.9 MB, free: 73.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.574e-06/1.205, allocations: 0 / 475.9 MB, free: 73.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003599/1.205, allocations: 106.5 kB / 476 MB, free: 73.57 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.02158/1.227, allocations: 5.365 MB / 481.4 MB, free: 71.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/1.227, allocations: 6.438 kB / 481.4 MB, free: 71.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04922/1.276, allocations: 6.896 MB / 488.3 MB, free: 70.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02473/1.301, allocations: 6.777 MB / 495.1 MB, free: 66.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004852/1.301, allocations: 399.2 kB / 495.5 MB, free: 66.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/1.304, allocations: 0.5129 MB / 496 MB, free: 65.81 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03943/1.344, allocations: 12.63 MB / 0.4967 GB, free: 52.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002899/1.344, allocations: 67.36 kB / 0.4968 GB, free: 52.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001904/1.346, allocations: 245.4 kB / 0.497 GB, free: 52.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002213/1.348, allocations: 1.046 MB / 0.498 GB, free: 50.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03992/1.388, allocations: 10.52 MB / 0.5083 GB, free: 40.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09032/1.479, allocations: 50.11 MB / 0.5572 GB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02339/1.502, allocations: 4.793 MB / 0.5619 GB, free: 132 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2806/1.783, allocations: 7.046 MB / 0.5688 GB, free: 81.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/1.783, allocations: 56.47 kB / 0.5688 GB, free: 81.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 5.63e-06/1.783, allocations: 0 / 0.5688 GB, free: 81.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=224): time 0.1259/1.909, allocations: 19.8 MB / 0.5882 GB, free: 78.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.068e-05/1.909, allocations: 210 kB / 0.5884 GB, free: 78.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009655/1.919, allocations: 4.397 MB / 0.5927 GB, free: 78.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005102/1.919, allocations: 53.78 kB / 0.5927 GB, free: 78.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003394/1.923, allocations: 3.566 MB / 0.5962 GB, free: 76.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001267/1.924, allocations: 0.8353 MB / 0.597 GB, free: 75.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007332/1.925, allocations: 128.7 kB / 0.5971 GB, free: 75.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004141/1.925, allocations: 0.5741 MB / 0.5977 GB, free: 75.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005505/1.931, allocations: 2.156 MB / 0.5998 GB, free: 74.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008424/1.939, allocations: 5.895 MB / 0.6056 GB, free: 68.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008296/1.948, allocations: 3.517 MB / 0.609 GB, free: 67.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001703/1.948, allocations: 36.94 kB / 0.609 GB, free: 67.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02703/1.975, allocations: 8.76 MB / 0.6176 GB, free: 64.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.975, allocations: 61.25 kB / 0.6176 GB, free: 64.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002197/1.975, allocations: 133.5 kB / 0.6178 GB, free: 64.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005758/1.981, allocations: 1.05 MB / 0.6188 GB, free: 64.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00869/1.99, allocations: 1.418 MB / 0.6202 GB, free: 63.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/2.006, allocations: 7.108 MB / 0.6271 GB, free: 60.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007035/2.013, allocations: 329.6 kB / 0.6274 GB, free: 60.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001439/2.014, allocations: 384.9 kB / 0.6278 GB, free: 59.83 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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.006588/2.021, allocations: 2.488 MB / 0.6302 GB, free: 57.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/2.022, allocations: 406.5 kB / 0.6306 GB, free: 57.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01222/2.034, allocations: 3.65 MB / 0.6342 GB, free: 54.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.706e-05/2.034, allocations: 27.94 kB / 0.6342 GB, free: 54.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/2.035, allocations: 8.75 kB / 0.6342 GB, free: 54.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-05/2.035, allocations: 14.03 kB / 0.6342 GB, free: 54.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03192/2.067, allocations: 9.868 MB / 0.6439 GB, free: 46.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.021e-05/2.067, allocations: 4 kB / 0.6439 GB, free: 46.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003189/2.07, allocations: 357.8 kB / 0.6442 GB, free: 45.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004969/2.075, allocations: 0.794 MB / 0.645 GB, free: 45.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004159/2.075, allocations: 47.52 kB / 0.645 GB, free: 45.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/2.088, allocations: 5.828 MB / 0.6507 GB, free: 40.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/2.088, allocations: 15.78 kB / 0.6507 GB, free: 40.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01618/2.104, allocations: 6.316 MB / 0.6569 GB, free: 34.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002833/2.107, allocations: 0.712 MB / 0.6576 GB, free: 33.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/2.109, allocations: 43.81 kB / 0.6576 GB, free: 33.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003352/2.112, allocations: 109.1 kB / 0.6577 GB, free: 33.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000649/2.113, allocations: 151.8 kB / 0.6579 GB, free: 33.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002176/2.113, allocations: 68 kB / 0.658 GB, free: 33.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006656/2.12, allocations: 2.757 MB / 0.6606 GB, free: 31.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.12, allocations: 0 / 0.6606 GB, free: 31.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00823/2.128, allocations: 1.174 MB / 0.6618 GB, free: 30.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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.001051/2.129, allocations: 229.4 kB / 0.662 GB, free: 29.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01309/2.142, allocations: 5.377 MB / 0.6673 GB, free: 25.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/2.142, allocations: 0 / 0.6673 GB, free: 25.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004062/2.146, allocations: 1.791 MB / 0.669 GB, free: 23.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004232/2.151, allocations: 0.5058 MB / 0.6695 GB, free: 23.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02878/2.179, allocations: 12.96 MB / 0.6822 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008671/2.188, allocations: 3.972 MB / 0.686 GB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.008919/2.197, allocations: 1.936 MB / 0.6879 GB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/2.199, allocations: 275.4 kB / 0.6882 GB, free: 4.621 MB / 362.7 MB Notification: Performance of SimCode: time 1.223e-06/2.199, allocations: 0 / 0.6882 GB, free: 4.621 MB / 362.7 MB Notification: Performance of Templates: time 0.3966/2.595, allocations: 41.39 MB / 0.7286 GB, free: 85.89 MB / 378.7 MB