Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.Spring2") Notification: Performance of loadModel(ModelicaTest): time 2.282/2.282, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004485/0.000449, allocations: 12 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2801, allocations: 54.87 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.05658/0.3367, allocations: 41.51 MB / 410.7 MB, free: 1.066 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02539/0.3621, allocations: 10.08 MB / 420.8 MB, free: 6.957 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007905/0.3701, allocations: 207.5 kB / 421 MB, free: 6.754 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006595/0.3767, allocations: 2.08 MB / 423.1 MB, free: 4.664 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02031/0.3971, allocations: 6.019 MB / 429.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003464/0.4006, allocations: 0.7722 MB / 429.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006534/0.4072, allocations: 3.081 MB / 432.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008849/0.416, allocations: 4.645 MB / 437.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002722/0.4188, allocations: 1.246 MB / 438.8 MB, free: 4.809 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.4222, allocations: 1.745 MB / 440.6 MB, free: 3.059 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007969/0.423, allocations: 172 kB / 440.7 MB, free: 2.891 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002553/0.4256, allocations: 0.9012 MB / 441.6 MB, free: 1.988 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002952/0.4285, allocations: 1.851 MB / 443.5 MB, free: 136 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.4302, allocations: 0.9285 MB / 444.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009184/0.4394, allocations: 5.986 MB / 450.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.846e-06/0.4394, allocations: 0 / 450.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.798e-06/0.4395, allocations: 0 / 450.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001643/0.4396, allocations: 0 / 450.4 MB, free: 9.195 MB / 378.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.01295/0.4526, allocations: 4.88 MB / 455.3 MB, free: 4.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.4527, allocations: 12.03 kB / 455.3 MB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01394/0.4666, allocations: 2.68 MB / 458 MB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008332/0.475, allocations: 3.45 MB / 461.4 MB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003779/0.4754, allocations: 278.8 kB / 461.7 MB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002867/0.4783, allocations: 0.5775 MB / 462.3 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02874/0.5071, allocations: 11.89 MB / 474.2 MB, free: 492 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001924/0.5073, allocations: 51.52 kB / 474.2 MB, free: 440 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001042/0.5084, allocations: 175.8 kB / 474.4 MB, free: 264 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3027/0.8111, allocations: 2.08 MB / 476.5 MB, free: 89.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/0.8376, allocations: 10.56 MB / 487 MB, free: 86.49 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06379/0.9014, allocations: 46.98 MB / 0.5215 GB, free: 39.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01647/0.9179, allocations: 5.083 MB / 0.5265 GB, free: 33.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02109/0.9391, allocations: 11.23 MB / 0.5374 GB, free: 22.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.9392, allocations: 55.86 kB / 0.5375 GB, free: 22.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=198): time 7.003e-06/0.9392, allocations: 7.938 kB / 0.5375 GB, free: 22.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=237): time 0.07478/1.014, allocations: 24.69 MB / 0.5616 GB, free: 13.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004987/1.019, allocations: 4.599 MB / 0.5661 GB, free: 8.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/1.03, allocations: 4.866 MB / 0.5708 GB, free: 3.336 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005803/1.03, allocations: 61.45 kB / 0.5709 GB, free: 3.273 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003643/1.034, allocations: 3.399 MB / 0.5742 GB, free: 15.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001766/1.036, allocations: 0.9472 MB / 0.5751 GB, free: 14.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008225/1.037, allocations: 148 kB / 0.5753 GB, free: 14.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007384/1.037, allocations: 0.6209 MB / 0.5759 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00794/1.045, allocations: 3.27 MB / 0.5791 GB, free: 10.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01246/1.058, allocations: 7.546 MB / 0.5865 GB, free: 1.242 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/1.069, allocations: 4.8 MB / 0.5911 GB, free: 12.44 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001491/1.069, allocations: 44 kB / 0.5912 GB, free: 12.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=967) (initialization): time 0.05646/1.125, allocations: 15.87 MB / 0.6067 GB, free: 12.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/1.126, allocations: 68 kB / 0.6068 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03794/1.164, allocations: 9.341 MB / 0.6159 GB, free: 3.039 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03746/1.201, allocations: 6.661 MB / 0.6224 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007176/1.208, allocations: 1.665 MB / 0.624 GB, free: 10.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04467/1.253, allocations: 21.93 MB / 0.6454 GB, free: 3.934 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008196/1.261, allocations: 0.6557 MB / 0.6461 GB, free: 3.277 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.263, allocations: 455.9 kB / 0.6465 GB, free: 2.832 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 685 * 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 (888): * Single equations (assignments): 868 * 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 {4,4,4} * 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.005866/1.269, allocations: 2.298 MB / 0.6487 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/1.27, allocations: 406.8 kB / 0.6491 GB, free: 124 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.353/1.623, allocations: 7.018 MB / 0.656 GB, free: 163.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01661/1.639, allocations: 6.368 MB / 0.6622 GB, free: 161.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.777e-05/1.639, allocations: 7.875 kB / 0.6622 GB, free: 161.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.689e-05/1.64, allocations: 11.53 kB / 0.6622 GB, free: 161.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03457/1.674, allocations: 14.99 MB / 0.6769 GB, free: 156.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.388e-05/1.674, allocations: 3.938 kB / 0.6769 GB, free: 156.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/1.677, allocations: 424.3 kB / 0.6773 GB, free: 156.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01259/1.689, allocations: 3.354 MB / 0.6805 GB, free: 154.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005979/1.69, allocations: 77.27 kB / 0.6806 GB, free: 154 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02201/1.712, allocations: 16.88 MB / 0.6971 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002854/1.715, allocations: 4.46 MB / 0.7015 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02164/1.737, allocations: 10.41 MB / 0.7116 GB, free: 121.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/1.738, allocations: 0.491 MB / 0.7121 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001079/1.739, allocations: 61.16 kB / 0.7122 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003491/1.742, allocations: 291.4 kB / 0.7124 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000875/1.743, allocations: 189.6 kB / 0.7126 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/1.744, allocations: 81.06 kB / 0.7127 GB, free: 120.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005552/1.749, allocations: 3.078 MB / 0.7157 GB, free: 117.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.029e-06/1.749, allocations: 0 / 0.7157 GB, free: 117.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007944/1.757, allocations: 1.57 MB / 0.7172 GB, free: 115.9 MB / 490.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 {(4,100.0%),(3,100.0%),(4,100.0%),(3,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.0008252/1.758, allocations: 233.6 kB / 0.7175 GB, free: 115.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01858/1.777, allocations: 9.468 MB / 0.7267 GB, free: 106.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.777, allocations: 0 / 0.7267 GB, free: 106.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01008/1.787, allocations: 4.604 MB / 0.7312 GB, free: 101.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/1.79, allocations: 0.5001 MB / 0.7317 GB, free: 100.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02517/1.815, allocations: 15.72 MB / 0.747 GB, free: 85.14 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005984/1.821, allocations: 3.742 MB / 0.7507 GB, free: 81.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/1.823, allocations: 367.3 kB / 0.751 GB, free: 81.01 MB / 490.7 MB Notification: Performance of SimCode: time 1.947e-06/1.823, allocations: 0 / 0.751 GB, free: 81.01 MB / 490.7 MB Notification: Performance of Templates: time 0.8794/2.702, allocations: 280.6 MB / 1.025 GB, free: 168.3 MB / 0.4948 GB