Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003366/0.0003368, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.09002, allocations: 44.49 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.402/0.4921, allocations: 85.13 MB / 394.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4924, allocations: 95.42 kB / 394.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2211/0.7136, allocations: 57.09 MB / 451.3 MB, free: 1.766 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7136, allocations: 0 / 451.3 MB, free: 1.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001084/0.7137, allocations: 48 kB / 451.3 MB, free: 1.719 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.0164/0.7302, allocations: 3.036 MB / 454.4 MB, free: 14.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.7302, allocations: 8.031 kB / 454.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01611/0.7463, allocations: 2.051 MB / 456.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01447/0.7609, allocations: 3.609 MB / 460 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002053/0.7611, allocations: 188.6 kB / 460.2 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000971/0.7621, allocations: 248.2 kB / 460.5 MB, free: 9.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01845/0.7806, allocations: 6.924 MB / 467.4 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001465/0.7808, allocations: 39.59 kB / 467.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005925/0.7814, allocations: 126.8 kB / 467.6 MB, free: 2.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00164/0.783, allocations: 0.6993 MB / 468.3 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.802, allocations: 5.985 MB / 474.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0489/0.851, allocations: 32.26 MB / 0.4946 GB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.8621, allocations: 2.521 MB / 0.4971 GB, free: 7.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008274/0.8704, allocations: 3.559 MB / 0.5006 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.8705, allocations: 46.95 kB / 0.5006 GB, free: 3.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 4.268e-06/0.8705, allocations: 0 / 0.5006 GB, free: 3.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.04334/0.9139, allocations: 10.34 MB / 0.5107 GB, free: 9.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001586/0.9155, allocations: 1.596 MB / 0.5123 GB, free: 7.332 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005852/0.9214, allocations: 2.717 MB / 0.5149 GB, free: 4.594 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003228/0.9217, allocations: 37.7 kB / 0.515 GB, free: 4.551 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.9236, allocations: 2.066 MB / 0.517 GB, free: 2.492 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007099/0.9243, allocations: 494.7 kB / 0.5174 GB, free: 2.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003306/0.9247, allocations: 84 kB / 0.5175 GB, free: 1.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003612/0.925, allocations: 0.4967 MB / 0.518 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2627/1.188, allocations: 1.608 MB / 0.5196 GB, free: 111.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006881/1.195, allocations: 4.38 MB / 0.5239 GB, free: 108 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006618/1.201, allocations: 2.598 MB / 0.5264 GB, free: 108 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001345/1.202, allocations: 29.92 kB / 0.5264 GB, free: 108 MB / 410.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02321/1.225, allocations: 6.921 MB / 0.5332 GB, free: 107.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.225, allocations: 48.94 kB / 0.5332 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01038/1.235, allocations: 2.5 MB / 0.5357 GB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009056/1.244, allocations: 1.504 MB / 0.5371 GB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005503/1.25, allocations: 0.9961 MB / 0.5381 GB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01527/1.265, allocations: 7.508 MB / 0.5454 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/1.271, allocations: 360.5 kB / 0.5458 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005291/1.271, allocations: 282.3 kB / 0.5461 GB, free: 104.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (531): * Single equations (assignments): 523 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002734/1.274, allocations: 1.407 MB / 0.5474 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004866/1.275, allocations: 226.4 kB / 0.5476 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/1.285, allocations: 2.801 MB / 0.5504 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009454/1.294, allocations: 2.471 MB / 0.5528 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.294, allocations: 3.75 kB / 0.5528 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/1.294, allocations: 7.688 kB / 0.5528 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/1.314, allocations: 6.718 MB / 0.5594 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/1.314, allocations: 3.938 kB / 0.5594 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/1.315, allocations: 160.4 kB / 0.5595 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008164/1.323, allocations: 1.441 MB / 0.5609 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/1.324, allocations: 29.2 kB / 0.561 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/1.339, allocations: 7.662 MB / 0.5684 GB, free: 96.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001088/1.34, allocations: 1.464 MB / 0.5699 GB, free: 95.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01332/1.353, allocations: 4.773 MB / 0.5745 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006991/1.354, allocations: 301.3 kB / 0.5748 GB, free: 93.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004915/1.354, allocations: 26.05 kB / 0.5748 GB, free: 93.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/1.356, allocations: 126.6 kB / 0.575 GB, free: 93.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/1.357, allocations: 73.75 kB / 0.575 GB, free: 93.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/1.357, allocations: 34.39 kB / 0.5751 GB, free: 93.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003532/1.36, allocations: 1.702 MB / 0.5767 GB, free: 92.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.36, allocations: 0 / 0.5767 GB, free: 92.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004696/1.365, allocations: 0.7553 MB / 0.5775 GB, free: 92.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (77): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004916/1.366, allocations: 166.9 kB / 0.5776 GB, free: 92.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01024/1.376, allocations: 4.275 MB / 0.5818 GB, free: 90.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.376, allocations: 4 kB / 0.5818 GB, free: 90.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004854/1.381, allocations: 1.697 MB / 0.5835 GB, free: 89.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/1.382, allocations: 234.6 kB / 0.5837 GB, free: 89.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/1.397, allocations: 7.828 MB / 0.5913 GB, free: 82.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/1.399, allocations: 2.324 MB / 0.5936 GB, free: 80.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009383/1.4, allocations: 197.8 kB / 0.5938 GB, free: 80 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/1.4, allocations: 4 kB / 0.5938 GB, free: 80 MB / 410.7 MB Notification: Performance of Templates: time 0.1017/1.502, allocations: 70.22 MB / 0.6624 GB, free: 12.73 MB / 410.7 MB