Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadModel(Modelica): time 1.781/1.781, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003563/0.0003566, allocations: 8 kB / 233.8 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.0901, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3942/0.4844, allocations: 80.49 MB / 353 MB, free: 9.648 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004239/0.4848, allocations: 87.2 kB / 353.1 MB, free: 9.602 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3423/0.8272, allocations: 78.03 MB / 431.2 MB, free: 1.031 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.8272, allocations: 0 / 431.2 MB, free: 1.031 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002252/0.8275, allocations: 76 kB / 431.2 MB, free: 0.957 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: 1465 * Number of variables: 1465 Notification: Performance of Generate backend data structure: time 0.2695/1.097, allocations: 4.219 MB / 435.4 MB, free: 71.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/1.097, allocations: 8.844 kB / 435.5 MB, free: 71.81 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02664/1.124, allocations: 2.233 MB / 437.7 MB, free: 71.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02545/1.149, allocations: 4.344 MB / 442 MB, free: 71.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007914/1.15, allocations: 318.7 kB / 442.3 MB, free: 71.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003125/1.153, allocations: 412.3 kB / 442.7 MB, free: 71.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04411/1.197, allocations: 10.28 MB / 453 MB, free: 68.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005369/1.198, allocations: 62.19 kB / 453.1 MB, free: 68.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002891/1.201, allocations: 207.1 kB / 453.3 MB, free: 68.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003247/1.204, allocations: 0.9847 MB / 454.3 MB, free: 68.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03555/1.24, allocations: 8.144 MB / 462.4 MB, free: 68.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09286/1.333, allocations: 48.25 MB / 0.4987 GB, free: 32.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02196/1.355, allocations: 3.559 MB / 0.5022 GB, free: 30.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0216/1.376, allocations: 6.508 MB / 0.5085 GB, free: 27.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.468e-05/1.377, allocations: 50.84 kB / 0.5086 GB, free: 27.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 7.154e-06/1.377, allocations: 3.219 kB / 0.5086 GB, free: 27.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=138): time 0.06703/1.444, allocations: 11.98 MB / 0.5203 GB, free: 18.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00138/1.445, allocations: 1.589 MB / 0.5218 GB, free: 16.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008575/1.454, allocations: 3.802 MB / 0.5256 GB, free: 13.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000426/1.454, allocations: 46.81 kB / 0.5256 GB, free: 13.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002732/1.457, allocations: 3.029 MB / 0.5286 GB, free: 10.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009867/1.458, allocations: 0.584 MB / 0.5291 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000776/1.459, allocations: 116 kB / 0.5292 GB, free: 9.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000414/1.459, allocations: 0.5653 MB / 0.5298 GB, free: 9.402 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005416/1.465, allocations: 1.961 MB / 0.5317 GB, free: 7.762 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008282/1.473, allocations: 5.865 MB / 0.5374 GB, free: 372 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/1.484, allocations: 3.414 MB / 0.5408 GB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001599/1.484, allocations: 40 kB / 0.5408 GB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.0302/1.515, allocations: 8.507 MB / 0.5491 GB, free: 5.645 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/1.515, allocations: 68.03 kB / 0.5492 GB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01136/1.526, allocations: 2.677 MB / 0.5518 GB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009851/1.536, allocations: 1.536 MB / 0.5533 GB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01081/1.547, allocations: 1.361 MB / 0.5546 GB, free: 8 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2847/1.832, allocations: 5.189 MB / 0.5597 GB, free: 72.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01144/1.843, allocations: 435.7 kB / 0.5601 GB, free: 72.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002125/1.845, allocations: 384.3 kB / 0.5605 GB, free: 72.53 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 36 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (720): * Single equations (assignments): 710 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 26} Notification: Performance of prepare postOptimizeDAE: time 0.008786/1.854, allocations: 1.974 MB / 0.5624 GB, free: 72.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/1.856, allocations: 316.8 kB / 0.5627 GB, free: 72.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01776/1.873, allocations: 3.02 MB / 0.5656 GB, free: 72.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01486/1.888, allocations: 2.572 MB / 0.5682 GB, free: 72.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.964e-05/1.888, allocations: 2.344 kB / 0.5682 GB, free: 72.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-05/1.888, allocations: 5.188 kB / 0.5682 GB, free: 72.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/1.899, allocations: 3.543 MB / 0.5716 GB, free: 71.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.083e-05/1.899, allocations: 1.422 kB / 0.5716 GB, free: 71.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/1.901, allocations: 163.1 kB / 0.5718 GB, free: 71.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008588/1.91, allocations: 1.434 MB / 0.5732 GB, free: 71.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004296/1.91, allocations: 31.92 kB / 0.5732 GB, free: 71.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009967/1.92, allocations: 5.84 MB / 0.5789 GB, free: 68.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001231/1.921, allocations: 1.47 MB / 0.5804 GB, free: 67.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/1.937, allocations: 5.09 MB / 0.5853 GB, free: 66.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/1.938, allocations: 378.4 kB / 0.5857 GB, free: 66.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001393/1.94, allocations: 27.75 kB / 0.5857 GB, free: 66.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/1.943, allocations: 129.5 kB / 0.5858 GB, free: 66.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006214/1.944, allocations: 90.97 kB / 0.5859 GB, free: 66.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001832/1.944, allocations: 45.06 kB / 0.586 GB, free: 66.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006538/1.95, allocations: 2.334 MB / 0.5882 GB, free: 66.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.95, allocations: 0 / 0.5882 GB, free: 66.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007532/1.958, allocations: 0.965 MB / 0.5892 GB, free: 66.69 MB / 362.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],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]) * 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 (73): * Single equations (assignments): 65 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006999/1.959, allocations: 171.6 kB / 0.5894 GB, free: 66.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01439/1.973, allocations: 5.139 MB / 0.5944 GB, free: 66.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.973, allocations: 6.219 kB / 0.5944 GB, free: 66.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006718/1.98, allocations: 1.962 MB / 0.5963 GB, free: 65.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/1.983, allocations: 345 kB / 0.5966 GB, free: 65.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02535/2.008, allocations: 10.76 MB / 0.6071 GB, free: 60.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006936/2.015, allocations: 3.121 MB / 0.6102 GB, free: 58.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/2.016, allocations: 261.8 kB / 0.6104 GB, free: 58.8 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/2.016, allocations: 3.938 kB / 0.6104 GB, free: 58.8 MB / 362.7 MB Notification: Performance of Templates: time 0.4869/2.503, allocations: 131.2 MB / 0.7386 GB, free: 80.05 MB / 378.7 MB