Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.|body1.Q.1.|body1.Q.2.|body1.Q.3.|body1.Q.4.|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.Q.1.|body2.Q.2.|body2.Q.3.|body2.Q.4.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadModel(ModelicaTest): time 1.857/1.857, allocations: 209.3 MB / 224.9 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004593/0.0004594, allocations: 15.98 kB / 282.6 MB, free: 9.793 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08814/0.08862, allocations: 48.71 MB / 331.3 MB, free: 8.992 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3467/0.4354, allocations: 88.87 MB / 420.1 MB, free: 12.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.4357, allocations: 79.95 kB / 420.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6116/1.047, allocations: 95.98 MB / 0.5041 GB, free: 86.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.419e-06/1.047, allocations: 1.812 kB / 0.5041 GB, free: 86.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000268/1.048, allocations: 93.39 kB / 0.5042 GB, free: 86.84 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: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.03292/1.081, allocations: 6.103 MB / 0.5102 GB, free: 84.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/1.081, allocations: 11.5 kB / 0.5102 GB, free: 84.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01737/1.098, allocations: 2.878 MB / 0.513 GB, free: 84.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02085/1.119, allocations: 7.19 MB / 0.52 GB, free: 83.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004262/1.119, allocations: 358.6 kB / 0.5203 GB, free: 83.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002086/1.121, allocations: 482.2 kB / 0.5208 GB, free: 83.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02856/1.15, allocations: 12.27 MB / 0.5328 GB, free: 80.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002589/1.15, allocations: 72.77 kB / 0.5329 GB, free: 80.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001353/1.152, allocations: 228.1 kB / 0.5331 GB, free: 80.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002193/1.154, allocations: 1.196 MB / 0.5342 GB, free: 79.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04369/1.198, allocations: 10.48 MB / 0.5445 GB, free: 76.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09282/1.291, allocations: 57.05 MB / 0.6002 GB, free: 26.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01622/1.307, allocations: 5.044 MB / 0.6051 GB, free: 20.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02136/1.328, allocations: 11.15 MB / 0.616 GB, free: 9.363 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/1.328, allocations: 59.83 kB / 0.6161 GB, free: 9.297 MB / 410.7 MB Notification: Performance of pre-optimization done (n=198): time 6.11e-06/1.328, allocations: 0 / 0.6161 GB, free: 9.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.09226/1.421, allocations: 24.46 MB / 0.6399 GB, free: 484 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2664/1.687, allocations: 4.624 MB / 0.6445 GB, free: 91.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01028/1.697, allocations: 4.112 MB / 0.6485 GB, free: 91.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006397/1.698, allocations: 59.72 kB / 0.6485 GB, free: 91.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002792/1.701, allocations: 3.384 MB / 0.6518 GB, free: 90.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001477/1.702, allocations: 0.9458 MB / 0.6528 GB, free: 89.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007637/1.703, allocations: 153.8 kB / 0.6529 GB, free: 89.67 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005395/1.704, allocations: 0.6183 MB / 0.6535 GB, free: 89.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008116/1.712, allocations: 3.18 MB / 0.6566 GB, free: 89.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0104/1.722, allocations: 7.411 MB / 0.6639 GB, free: 83.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/1.733, allocations: 4.726 MB / 0.6685 GB, free: 83.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002178/1.733, allocations: 42.38 kB / 0.6685 GB, free: 83.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.03387/1.767, allocations: 12.7 MB / 0.6809 GB, free: 80.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001428/1.767, allocations: 76.17 kB / 0.681 GB, free: 80.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03189/1.799, allocations: 6.158 MB / 0.687 GB, free: 79.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0265/1.825, allocations: 3.11 MB / 0.69 GB, free: 78.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0164/1.842, allocations: 1.747 MB / 0.6917 GB, free: 78.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03649/1.878, allocations: 15.03 MB / 0.7064 GB, free: 68.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009894/1.888, allocations: 0.7595 MB / 0.7072 GB, free: 68.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.89, allocations: 446.3 kB / 0.7076 GB, free: 68.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (891): * Single equations (assignments): 871 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005775/1.896, allocations: 2.31 MB / 0.7098 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.897, allocations: 414.9 kB / 0.7102 GB, free: 67.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01921/1.916, allocations: 6.991 MB / 0.7171 GB, free: 64.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01754/1.934, allocations: 6.345 MB / 0.7233 GB, free: 63.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.023e-05/1.934, allocations: 13 kB / 0.7233 GB, free: 63.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.926e-05/1.934, allocations: 10.22 kB / 0.7233 GB, free: 63.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03564/1.97, allocations: 14.97 MB / 0.7379 GB, free: 51.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.389e-05/1.97, allocations: 8.391 kB / 0.7379 GB, free: 51.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002526/1.972, allocations: 421.4 kB / 0.7383 GB, free: 51.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01242/1.985, allocations: 3.334 MB / 0.7416 GB, free: 48.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006681/1.985, allocations: 79.78 kB / 0.7416 GB, free: 48.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02283/2.008, allocations: 16.95 MB / 0.7582 GB, free: 30.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00275/2.011, allocations: 4.44 MB / 0.7625 GB, free: 26.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02312/2.034, allocations: 10.89 MB / 0.7732 GB, free: 14.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/2.036, allocations: 491.6 kB / 0.7736 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/2.037, allocations: 55.98 kB / 0.7737 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003468/2.04, allocations: 342.6 kB / 0.774 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007482/2.041, allocations: 186.6 kB / 0.7742 GB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003015/2.041, allocations: 79.94 kB / 0.7743 GB, free: 13.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006042/2.047, allocations: 2.874 MB / 0.7771 GB, free: 10.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.94e-07/2.047, allocations: 0 / 0.7771 GB, free: 10.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008786/2.056, allocations: 1.483 MB / 0.7785 GB, free: 9.352 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (178): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000911/2.057, allocations: 223.1 kB / 0.7787 GB, free: 9.141 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01943/2.077, allocations: 8.872 MB / 0.7874 GB, free: 160 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/2.077, allocations: 0 / 0.7874 GB, free: 160 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01243/2.089, allocations: 4.579 MB / 0.7919 GB, free: 11.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004153/2.093, allocations: 0.4948 MB / 0.7924 GB, free: 10.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2852/2.378, allocations: 15.57 MB / 0.8076 GB, free: 95.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008878/2.387, allocations: 3.728 MB / 0.8112 GB, free: 94.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/2.389, allocations: 359.2 kB / 0.8115 GB, free: 94.39 MB / 442.7 MB Notification: Performance of SimCode: time 2.657e-06/2.389, allocations: 0 / 0.8115 GB, free: 94.39 MB / 442.7 MB Notification: Performance of Templates: time 0.7071/3.096, allocations: 277.2 MB / 1.082 GB, free: 40.17 MB / 458.7 MB