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.Elementary.DoublePendulum.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.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003893, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08296/0.08338, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3887/0.4721, allocations: 81.02 MB / 353.6 MB, free: 8.539 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.4725, allocations: 94.62 kB / 353.7 MB, free: 8.488 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6427/1.115, allocations: 83.28 MB / 437 MB, free: 72.65 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.807e-06/1.115, allocations: 0 / 437 MB, free: 72.65 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003337/1.116, allocations: 70.44 kB / 437.1 MB, free: 72.65 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: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.02036/1.136, allocations: 4.331 MB / 441.4 MB, free: 70.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/1.136, allocations: 9.031 kB / 441.4 MB, free: 70.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05604/1.192, allocations: 6.607 MB / 448 MB, free: 70.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02114/1.213, allocations: 5.846 MB / 453.9 MB, free: 70.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003789/1.214, allocations: 267.4 kB / 454.1 MB, free: 70.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002133/1.216, allocations: 369.7 kB / 454.5 MB, free: 70.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02459/1.241, allocations: 9.083 MB / 463.6 MB, free: 67.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002557/1.241, allocations: 61.89 kB / 463.6 MB, free: 67.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001301/1.242, allocations: 176.1 kB / 463.8 MB, free: 67.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001776/1.244, allocations: 0.8865 MB / 464.7 MB, free: 67.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0213/1.265, allocations: 7.586 MB / 472.3 MB, free: 67.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05847/1.324, allocations: 42.18 MB / 0.5024 GB, free: 35.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01337/1.337, allocations: 3.757 MB / 0.5061 GB, free: 34.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000552/1.338, allocations: 331.3 kB / 0.5064 GB, free: 34.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/1.338, allocations: 50.97 kB / 0.5064 GB, free: 34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 5.991e-06/1.338, allocations: 3.938 kB / 0.5064 GB, free: 34 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.08598/1.424, allocations: 19.96 MB / 0.5259 GB, free: 17.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/1.424, allocations: 252.2 kB / 0.5262 GB, free: 17.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006735/1.431, allocations: 3.887 MB / 0.53 GB, free: 13.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004838/1.431, allocations: 57.38 kB / 0.53 GB, free: 13.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001998/1.433, allocations: 2.826 MB / 0.5328 GB, free: 10.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009197/1.434, allocations: 0.7179 MB / 0.5335 GB, free: 10.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003834/1.435, allocations: 107.5 kB / 0.5336 GB, free: 10.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002978/1.435, allocations: 0.5411 MB / 0.5341 GB, free: 9.504 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004262/1.439, allocations: 2.072 MB / 0.5361 GB, free: 7.426 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005815/1.445, allocations: 5.302 MB / 0.5413 GB, free: 0.5039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007784/1.453, allocations: 3.268 MB / 0.5445 GB, free: 13.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.405e-05/1.453, allocations: 32 kB / 0.5445 GB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.03123/1.484, allocations: 8.368 MB / 0.5527 GB, free: 4.824 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001731/1.485, allocations: 56 kB / 0.5528 GB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002674/1.485, allocations: 116.2 kB / 0.5529 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0114/1.496, allocations: 1.366 MB / 0.5542 GB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/1.507, allocations: 1.216 MB / 0.5554 GB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2804/1.788, allocations: 8.71 MB / 0.5639 GB, free: 74.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006244/1.794, allocations: 304.5 kB / 0.5642 GB, free: 74.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001451/1.795, allocations: 332.7 kB / 0.5645 GB, free: 74.92 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 27 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005291/1.801, allocations: 1.937 MB / 0.5664 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009955/1.802, allocations: 350.8 kB / 0.5667 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/1.815, allocations: 3.895 MB / 0.5705 GB, free: 74.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-05/1.815, allocations: 21.22 kB / 0.5706 GB, free: 74.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/1.815, allocations: 7 kB / 0.5706 GB, free: 74.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-05/1.815, allocations: 11.89 kB / 0.5706 GB, free: 74.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02697/1.842, allocations: 8.884 MB / 0.5793 GB, free: 74.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-05/1.842, allocations: 2.719 kB / 0.5793 GB, free: 74.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002418/1.844, allocations: 263.8 kB / 0.5795 GB, free: 74.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006142/1.85, allocations: 1.203 MB / 0.5807 GB, free: 74.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000517/1.851, allocations: 28.97 kB / 0.5807 GB, free: 74.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01725/1.868, allocations: 7.852 MB / 0.5884 GB, free: 71.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/1.868, allocations: 16.53 kB / 0.5884 GB, free: 71.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01717/1.886, allocations: 6.655 MB / 0.5949 GB, free: 68.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002607/1.888, allocations: 0.6777 MB / 0.5956 GB, free: 68.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/1.89, allocations: 31.59 kB / 0.5956 GB, free: 68.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003287/1.893, allocations: 108.8 kB / 0.5957 GB, free: 68.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007652/1.894, allocations: 114.9 kB / 0.5958 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002752/1.894, allocations: 50.38 kB / 0.5958 GB, free: 68.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006282/1.9, allocations: 2.452 MB / 0.5982 GB, free: 67.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.9, allocations: 0 / 0.5982 GB, free: 67.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00708/1.907, allocations: 0.9932 MB / 0.5992 GB, free: 67.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (135): * Single equations (assignments): 131 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008459/1.908, allocations: 175 kB / 0.5994 GB, free: 67.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01169/1.92, allocations: 5.172 MB / 0.6044 GB, free: 65.69 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.92, allocations: 3.625 kB / 0.6044 GB, free: 65.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005479/1.926, allocations: 1.985 MB / 0.6064 GB, free: 64.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003918/1.93, allocations: 454 kB / 0.6068 GB, free: 64.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/1.954, allocations: 10.55 MB / 0.6171 GB, free: 59.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007618/1.962, allocations: 3.172 MB / 0.6202 GB, free: 58.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.01156/1.974, allocations: 1.815 MB / 0.622 GB, free: 58.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002094/1.976, allocations: 236.5 kB / 0.6222 GB, free: 58.43 MB / 362.7 MB Notification: Performance of SimCode: time 1.864e-06/1.976, allocations: 3.938 kB / 0.6222 GB, free: 58.43 MB / 362.7 MB Notification: Performance of Templates: time 0.1613/2.137, allocations: 38.66 MB / 0.66 GB, free: 27.09 MB / 362.7 MB