Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.242/1.242, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002965, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05417/0.05449, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2513/0.3058, allocations: 46.41 MB / 230.4 MB, free: 356 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.3062, allocations: 77.09 kB / 230.5 MB, free: 316 kB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.863/4.169, allocations: 413.2 MB / 0.6286 GB, free: 19.98 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.804e-06/4.169, allocations: 4 kB / 0.6286 GB, free: 19.97 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.000264/4.169, allocations: 95.94 kB / 0.6287 GB, free: 19.88 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1772 * Number of variables: 1772 Notification: Performance of Generate backend data structure: time 0.4545/4.624, allocations: 36.24 MB / 0.6641 GB, free: 41.22 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/4.624, allocations: 8.031 kB / 0.6641 GB, free: 41.22 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938/13.56, allocations: 0.8768 GB / 1.541 GB, free: 31.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06064/13.62, allocations: 17 MB / 1.558 GB, free: 18.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005251/13.62, allocations: 369.7 kB / 1.558 GB, free: 18.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01593/13.64, allocations: 494.1 kB / 1.558 GB, free: 17.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 2.662/16.3, allocations: 280.7 MB / 1.832 GB, free: 40.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003676/16.3, allocations: 44.67 kB / 1.833 GB, free: 40.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01368/16.32, allocations: 216.5 kB / 1.833 GB, free: 40.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006327/16.32, allocations: 1.609 MB / 1.834 GB, free: 40.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.148/21.47, allocations: 0.5361 GB / 2.37 GB, free: 19.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.491/27.96, allocations: 0.79 GB / 3.16 GB, free: 48.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5097/28.47, allocations: 67.44 MB / 3.226 GB, free: 31.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006737/28.47, allocations: 366.8 kB / 3.227 GB, free: 31.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.449e-05/28.47, allocations: 72.81 kB / 3.227 GB, free: 31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=261): time 6.493e-06/28.47, allocations: 0 / 3.227 GB, free: 31 MB / 298.7 MB Notification: Performance of matching and sorting (n=290): time 2.367/30.84, allocations: 229.4 MB / 3.451 GB, free: 71.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/30.84, allocations: 479.6 kB / 3.451 GB, free: 70.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0114/30.85, allocations: 4.945 MB / 3.456 GB, free: 70.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.004528/30.85, allocations: 70.08 kB / 3.456 GB, free: 70.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00301/30.86, allocations: 3.416 MB / 3.459 GB, free: 68.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005266/30.86, allocations: 1.069 MB / 3.46 GB, free: 68.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004821/30.87, allocations: 150.7 kB / 3.461 GB, free: 68.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0005747/30.87, allocations: 0.6162 MB / 3.461 GB, free: 67.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5032/31.37, allocations: 65.43 MB / 3.525 GB, free: 43.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.6981/32.07, allocations: 69.61 MB / 3.593 GB, free: 65.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.6335/32.7, allocations: 53.72 MB / 3.645 GB, free: 65.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001511/32.7, allocations: 43.22 kB / 3.646 GB, free: 65.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=949) (initialization): time 1.168/33.87, allocations: 124 MB / 3.767 GB, free: 64.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/33.87, allocations: 65.56 kB / 3.767 GB, free: 64.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000233/33.87, allocations: 147.4 kB / 3.767 GB, free: 64.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006708/33.88, allocations: 1.415 MB / 3.768 GB, free: 64.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2346/34.11, allocations: 27.36 MB / 3.795 GB, free: 56.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01827/34.13, allocations: 8.768 MB / 3.804 GB, free: 48.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4243/34.56, allocations: 24.72 MB / 3.828 GB, free: 63.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006525/34.56, allocations: 1.179 MB / 3.829 GB, free: 63.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (888): * Single equations (assignments): 884 * 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.01456/34.58, allocations: 2.477 MB / 3.831 GB, free: 63.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005983/34.58, allocations: 436.8 kB / 3.832 GB, free: 63.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2088/34.79, allocations: 23.43 MB / 3.855 GB, free: 63.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.335e-05/34.79, allocations: 32.62 kB / 3.855 GB, free: 63.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.729e-05/34.79, allocations: 11.66 kB / 3.855 GB, free: 63.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.089e-05/34.79, allocations: 12.42 kB / 3.855 GB, free: 63.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8458/35.64, allocations: 104.1 MB / 3.956 GB, free: 62.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.674e-05/35.64, allocations: 7.625 kB / 3.956 GB, free: 62.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2278/35.87, allocations: 26.07 MB / 3.982 GB, free: 60.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006144/35.87, allocations: 1.188 MB / 3.983 GB, free: 60.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004747/35.88, allocations: 0.7477 MB / 3.984 GB, free: 59.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01678/35.89, allocations: 7.76 MB / 3.991 GB, free: 57.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/35.89, allocations: 9.312 kB / 3.991 GB, free: 57.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.873/37.77, allocations: 191.9 MB / 4.179 GB, free: 61.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01464/37.78, allocations: 3.862 MB / 4.182 GB, free: 60.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00674/37.79, allocations: 59.27 kB / 4.182 GB, free: 60.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2204/38.01, allocations: 24.41 MB / 4.206 GB, free: 42.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009204/38.01, allocations: 199.5 kB / 4.206 GB, free: 42.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004422/38.01, allocations: 0.8138 MB / 4.207 GB, free: 41.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00809/38.02, allocations: 3.144 MB / 4.21 GB, free: 38.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.91e-07/38.02, allocations: 2.875 kB / 4.21 GB, free: 38.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.02189/38.04, allocations: 2.507 MB / 4.213 GB, free: 36.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 38 * 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 (236): * Single equations (assignments): 232 * 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.004255/38.05, allocations: 212.4 kB / 4.213 GB, free: 35.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 1.4/39.45, allocations: 132.9 MB / 4.343 GB, free: 63.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/39.45, allocations: 3.781 kB / 4.343 GB, free: 63.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.505/39.95, allocations: 65.96 MB / 4.407 GB, free: 43.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007419/39.96, allocations: 0.5011 MB / 4.408 GB, free: 42.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7733/40.73, allocations: 81.42 MB / 4.487 GB, free: 58.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008735/40.74, allocations: 3.929 MB / 4.491 GB, free: 57.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02874/40.77, allocations: 2.618 MB / 4.493 GB, free: 55.64 MB / 298.7 MB Notification: Performance of SimCode: time 1.804e-06/40.77, allocations: 0 / 4.493 GB, free: 55.64 MB / 298.7 MB Notification: Performance of Templates: time 1.199/41.97, allocations: 290.4 MB / 4.777 GB, free: 35.73 MB / 314.7 MB