Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.937/1.937, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000649/0.0006491, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4597/0.4604, allocations: 48.71 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2204/0.6809, allocations: 88.87 MB / 420.7 MB, free: 5.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003888/0.6814, allocations: 75.95 kB / 420.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7576/1.439, allocations: 97.17 MB / 0.5058 GB, free: 86.92 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.439, allocations: 0 / 0.5058 GB, free: 86.92 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002852/1.439, allocations: 96.11 kB / 0.5059 GB, free: 86.91 MB / 394.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.04482/1.484, allocations: 6.096 MB / 0.5118 GB, free: 83.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/1.484, allocations: 7.188 kB / 0.5118 GB, free: 83.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02522/1.51, allocations: 2.876 MB / 0.5146 GB, free: 81.67 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02642/1.536, allocations: 7.205 MB / 0.5217 GB, free: 74.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004805/1.537, allocations: 356.5 kB / 0.522 GB, free: 74.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002854/1.539, allocations: 487.2 kB / 0.5225 GB, free: 73.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0388/1.578, allocations: 12.3 MB / 0.5345 GB, free: 60.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003709/1.579, allocations: 67.34 kB / 0.5346 GB, free: 60.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002446/1.581, allocations: 236.5 kB / 0.5348 GB, free: 60.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003214/1.584, allocations: 1.193 MB / 0.5359 GB, free: 58.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03494/1.619, allocations: 10.48 MB / 0.5462 GB, free: 48.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09709/1.717, allocations: 57.04 MB / 0.6019 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02636/1.743, allocations: 5.046 MB / 0.6068 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03267/1.776, allocations: 11.13 MB / 0.6177 GB, free: 5.156 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.206e-05/1.776, allocations: 63.77 kB / 0.6177 GB, free: 5.086 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 5.58e-06/1.776, allocations: 0 / 0.6177 GB, free: 5.086 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.4331/2.209, allocations: 24.45 MB / 0.6416 GB, free: 107.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003896/2.213, allocations: 4.638 MB / 0.6461 GB, free: 102.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01211/2.225, allocations: 4.601 MB / 0.6506 GB, free: 102.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000993/2.226, allocations: 57.47 kB / 0.6507 GB, free: 102.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003786/2.23, allocations: 3.383 MB / 0.654 GB, free: 99.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002116/2.232, allocations: 0.9466 MB / 0.6549 GB, free: 99.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/2.234, allocations: 143.8 kB / 0.6551 GB, free: 99.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006482/2.234, allocations: 0.6218 MB / 0.6557 GB, free: 98.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009135/2.243, allocations: 3.181 MB / 0.6588 GB, free: 97.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01214/2.256, allocations: 7.445 MB / 0.666 GB, free: 91.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/2.268, allocations: 4.729 MB / 0.6707 GB, free: 89.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001993/2.268, allocations: 43.94 kB / 0.6707 GB, free: 89.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.0501/2.318, allocations: 12.71 MB / 0.6831 GB, free: 85.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/2.319, allocations: 72.75 kB / 0.6832 GB, free: 85.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03273/2.351, allocations: 6.161 MB / 0.6892 GB, free: 82.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02353/2.375, allocations: 3.107 MB / 0.6922 GB, free: 80.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01134/2.386, allocations: 1.748 MB / 0.6939 GB, free: 78.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02344/2.41, allocations: 15.01 MB / 0.7086 GB, free: 64.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01228/2.422, allocations: 0.7619 MB / 0.7093 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002005/2.424, allocations: 449.7 kB / 0.7098 GB, free: 63.46 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.007524/2.432, allocations: 2.3 MB / 0.712 GB, free: 61.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001335/2.433, allocations: 410.7 kB / 0.7124 GB, free: 61.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02675/2.46, allocations: 6.996 MB / 0.7192 GB, free: 54.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02461/2.485, allocations: 6.345 MB / 0.7254 GB, free: 48.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.938e-05/2.485, allocations: 8 kB / 0.7254 GB, free: 48.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.62e-05/2.485, allocations: 11.97 kB / 0.7255 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04884/2.534, allocations: 14.96 MB / 0.7401 GB, free: 33.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.206e-05/2.534, allocations: 8.062 kB / 0.7401 GB, free: 33.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004033/2.538, allocations: 426.2 kB / 0.7405 GB, free: 32.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01904/2.557, allocations: 3.34 MB / 0.7437 GB, free: 29.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001012/2.558, allocations: 76.48 kB / 0.7438 GB, free: 29.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03105/2.589, allocations: 16.94 MB / 0.7604 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003575/2.593, allocations: 4.447 MB / 0.7647 GB, free: 6.891 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03546/2.628, allocations: 10.41 MB / 0.7749 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002084/2.63, allocations: 483.6 kB / 0.7753 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00233/2.633, allocations: 59.98 kB / 0.7754 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006608/2.639, allocations: 336.2 kB / 0.7757 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001363/2.641, allocations: 193.5 kB / 0.7759 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004637/2.641, allocations: 73.28 kB / 0.776 GB, free: 11.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01032/2.651, allocations: 2.882 MB / 0.7788 GB, free: 8.344 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.652, allocations: 4 kB / 0.7788 GB, free: 8.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01143/2.663, allocations: 1.479 MB / 0.7802 GB, free: 6.867 MB / 442.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.001305/2.664, allocations: 211.6 kB / 0.7804 GB, free: 6.656 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.342/3.006, allocations: 8.849 MB / 0.7891 GB, free: 116.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/3.006, allocations: 1.188 kB / 0.7891 GB, free: 116.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01638/3.023, allocations: 4.59 MB / 0.7936 GB, free: 115 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00501/3.028, allocations: 0.4921 MB / 0.794 GB, free: 115 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03546/3.063, allocations: 15.62 MB / 0.8093 GB, free: 108.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008773/3.072, allocations: 3.729 MB / 0.8129 GB, free: 108 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002284/3.075, allocations: 360.5 kB / 0.8133 GB, free: 108 MB / 442.7 MB Notification: Performance of SimCode: time 1.773e-06/3.075, allocations: 0 / 0.8133 GB, free: 108 MB / 442.7 MB Notification: Performance of Templates: time 0.869/3.944, allocations: 277.1 MB / 1.084 GB, free: 23.65 MB / 458.7 MB