Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.671/1.671, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005828/0.0005829, allocations: 12 kB / 233.2 MB, free: 0.9219 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07712/0.07774, allocations: 38.78 MB / 272 MB, free: 10.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2993/0.3771, allocations: 87.14 MB / 359.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.3774, allocations: 96.38 kB / 359.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4765/0.8539, allocations: 73.91 MB / 433.2 MB, free: 80.92 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.8539, allocations: 0 / 433.2 MB, free: 80.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001818/0.8541, allocations: 75.02 kB / 433.2 MB, free: 80.92 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: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.01101/0.8652, allocations: 3.589 MB / 436.8 MB, free: 79.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.8652, allocations: 9.594 kB / 436.8 MB, free: 79.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/0.8775, allocations: 2.263 MB / 439.1 MB, free: 79.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01216/0.8897, allocations: 3.902 MB / 443 MB, free: 78.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003179/0.89, allocations: 279.9 kB / 443.3 MB, free: 78.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001477/0.8915, allocations: 352 kB / 443.6 MB, free: 78.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0256/0.9172, allocations: 10.36 MB / 454 MB, free: 75.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002046/0.9174, allocations: 58.89 kB / 454 MB, free: 75.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001454/0.9189, allocations: 177.6 kB / 454.2 MB, free: 75.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001946/0.9209, allocations: 0.9836 MB / 455.2 MB, free: 75.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02252/0.9434, allocations: 8.656 MB / 463.8 MB, free: 73.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05003/0.9935, allocations: 44.01 MB / 0.4959 GB, free: 38.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/1.005, allocations: 3.571 MB / 0.4994 GB, free: 34.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01343/1.019, allocations: 7.139 MB / 0.5064 GB, free: 27.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/1.019, allocations: 47.56 kB / 0.5065 GB, free: 27.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 6.28e-06/1.019, allocations: 0 / 0.5065 GB, free: 27.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.06048/1.079, allocations: 17.02 MB / 0.5231 GB, free: 10.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/1.079, allocations: 145.5 kB / 0.5232 GB, free: 10.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006524/1.086, allocations: 3.097 MB / 0.5262 GB, free: 7.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003478/1.086, allocations: 45.7 kB / 0.5263 GB, free: 7.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001894/1.088, allocations: 2.675 MB / 0.5289 GB, free: 4.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000784/1.089, allocations: 0.6011 MB / 0.5295 GB, free: 3.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005397/1.09, allocations: 104 kB / 0.5296 GB, free: 3.738 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003711/1.09, allocations: 0.542 MB / 0.5301 GB, free: 3.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004381/1.094, allocations: 1.927 MB / 0.532 GB, free: 1.254 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008176/1.103, allocations: 5.29 MB / 0.5372 GB, free: 10.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007422/1.11, allocations: 3.103 MB / 0.5402 GB, free: 7.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.11, allocations: 40 kB / 0.5402 GB, free: 7.121 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.2248/1.335, allocations: 7.969 MB / 0.548 GB, free: 82.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.335, allocations: 59.12 kB / 0.5481 GB, free: 82.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001953/1.335, allocations: 119.7 kB / 0.5482 GB, free: 82.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005949/1.341, allocations: 1.309 MB / 0.5495 GB, free: 82.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005399/1.347, allocations: 1.253 MB / 0.5507 GB, free: 82.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/1.36, allocations: 6.294 MB / 0.5568 GB, free: 81.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005934/1.366, allocations: 346 kB / 0.5572 GB, free: 81.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/1.367, allocations: 338.9 kB / 0.5575 GB, free: 81.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (665): * Single equations (assignments): 661 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004399/1.371, allocations: 1.784 MB / 0.5592 GB, free: 81.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007195/1.372, allocations: 298.7 kB / 0.5595 GB, free: 81.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00968/1.382, allocations: 3.312 MB / 0.5627 GB, free: 81.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.034e-05/1.382, allocations: 19.39 kB / 0.5628 GB, free: 81.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/1.382, allocations: 3.906 kB / 0.5628 GB, free: 81.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-05/1.382, allocations: 10.52 kB / 0.5628 GB, free: 81.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01876/1.401, allocations: 7.374 MB / 0.57 GB, free: 80.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.5e-05/1.401, allocations: 3.562 kB / 0.57 GB, free: 80.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/1.402, allocations: 230.6 kB / 0.5702 GB, free: 80.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004709/1.407, allocations: 1.115 MB / 0.5713 GB, free: 80.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003073/1.408, allocations: 25.34 kB / 0.5713 GB, free: 80.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/1.418, allocations: 5.928 MB / 0.5771 GB, free: 78.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.272e-06/1.418, allocations: 0 / 0.5771 GB, free: 78.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/1.431, allocations: 5.651 MB / 0.5826 GB, free: 76.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/1.433, allocations: 0.5762 MB / 0.5832 GB, free: 75.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005499/1.433, allocations: 25.59 kB / 0.5832 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/1.435, allocations: 107.1 kB / 0.5833 GB, free: 75.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003092/1.436, allocations: 86.06 kB / 0.5834 GB, free: 75.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/1.436, allocations: 47.23 kB / 0.5834 GB, free: 75.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00428/1.44, allocations: 2.142 MB / 0.5855 GB, free: 75.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.91e-07/1.44, allocations: 1.469 kB / 0.5855 GB, free: 75.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006722/1.447, allocations: 0.8956 MB / 0.5864 GB, free: 75.11 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (119): * Single equations (assignments): 115 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005237/1.448, allocations: 169.3 kB / 0.5866 GB, free: 75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009498/1.457, allocations: 4.701 MB / 0.5912 GB, free: 73.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.83e-06/1.457, allocations: 0 / 0.5912 GB, free: 73.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002921/1.46, allocations: 1.489 MB / 0.5926 GB, free: 73.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/1.462, allocations: 321.3 kB / 0.5929 GB, free: 72.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01924/1.481, allocations: 9.779 MB / 0.6025 GB, free: 68.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004544/1.486, allocations: 2.895 MB / 0.6053 GB, free: 67.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/1.487, allocations: 255 kB / 0.6055 GB, free: 67.12 MB / 362.7 MB Notification: Performance of SimCode: time 2.436e-06/1.487, allocations: 0 / 0.6055 GB, free: 67.12 MB / 362.7 MB Notification: Performance of Templates: time 0.0889/1.576, allocations: 62.11 MB / 0.6662 GB, free: 12.12 MB / 362.7 MB