Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 2.198/2.198, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004728/0.000473, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1218, allocations: 44.52 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4396/0.5615, allocations: 90.73 MB / 399.8 MB, free: 15.19 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5619, allocations: 93.14 kB / 399.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.244/1.806, allocations: 162 MB / 0.5487 GB, free: 39.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.357e-06/1.806, allocations: 0 / 0.5487 GB, free: 39.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009927/1.807, allocations: 160.1 kB / 0.5489 GB, free: 39.36 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.04318/1.85, allocations: 8.962 MB / 0.5576 GB, free: 35.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/1.85, allocations: 11.66 kB / 0.5576 GB, free: 35.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1186/1.969, allocations: 16.46 MB / 0.5737 GB, free: 35.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04595/2.015, allocations: 13.55 MB / 0.587 GB, free: 34.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007236/2.016, allocations: 0.5234 MB / 0.5875 GB, free: 34.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/2.02, allocations: 0.7221 MB / 0.5882 GB, free: 34.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0533/2.073, allocations: 16.39 MB / 0.6042 GB, free: 30.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007385/2.074, allocations: 110.3 kB / 0.6043 GB, free: 30.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003607/2.078, allocations: 327.3 kB / 0.6046 GB, free: 30.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003454/2.081, allocations: 1.487 MB / 0.606 GB, free: 30.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04245/2.124, allocations: 12.91 MB / 0.6187 GB, free: 29.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.127/2.251, allocations: 73.34 MB / 0.6903 GB, free: 404 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4214/2.672, allocations: 7.523 MB / 0.6976 GB, free: 83.42 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03028/2.702, allocations: 11.58 MB / 0.7089 GB, free: 81.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.772e-05/2.703, allocations: 64.47 kB / 0.709 GB, free: 81.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 8.105e-06/2.703, allocations: 0 / 0.709 GB, free: 81.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.3315/3.034, allocations: 51 MB / 0.7588 GB, free: 76.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/3.034, allocations: 404.6 kB / 0.7592 GB, free: 76.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01781/3.052, allocations: 7.047 MB / 0.7661 GB, free: 75.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009712/3.053, allocations: 81.02 kB / 0.7661 GB, free: 75.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005573/3.059, allocations: 5.224 MB / 0.7712 GB, free: 73.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002137/3.061, allocations: 1.248 MB / 0.7725 GB, free: 72.99 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/3.062, allocations: 166.2 kB / 0.7726 GB, free: 72.99 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006753/3.063, allocations: 0.6541 MB / 0.7733 GB, free: 72.67 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009601/3.072, allocations: 3.789 MB / 0.777 GB, free: 71.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01317/3.086, allocations: 8.436 MB / 0.7852 GB, free: 63.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/3.099, allocations: 5.51 MB / 0.7906 GB, free: 60.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001773/3.099, allocations: 44 kB / 0.7906 GB, free: 60.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.06288/3.162, allocations: 16.67 MB / 0.8069 GB, free: 47.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/3.162, allocations: 76 kB / 0.807 GB, free: 47.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002465/3.162, allocations: 163.5 kB / 0.8071 GB, free: 47.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03116/3.194, allocations: 5.487 MB / 0.8125 GB, free: 43.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01652/3.21, allocations: 1.788 MB / 0.8142 GB, free: 41.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09217/3.302, allocations: 28.96 MB / 0.8425 GB, free: 16.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01628/3.319, allocations: 0.5211 MB / 0.843 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003106/3.322, allocations: 476.6 kB / 0.8435 GB, free: 15.81 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.3857/3.708, allocations: 4.023 MB / 0.8474 GB, free: 72.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003028/3.711, allocations: 0.6508 MB / 0.848 GB, free: 72.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05025/3.761, allocations: 10.93 MB / 0.8587 GB, free: 72.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/3.761, allocations: 35.33 kB / 0.8587 GB, free: 72.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-05/3.761, allocations: 19.56 kB / 0.8588 GB, free: 72.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.142e-05/3.761, allocations: 21.02 kB / 0.8588 GB, free: 72.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08903/3.85, allocations: 23.98 MB / 0.8822 GB, free: 69.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-05/3.851, allocations: 3.562 kB / 0.8822 GB, free: 69.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005752/3.856, allocations: 428 kB / 0.8826 GB, free: 69.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0411/3.897, allocations: 5.085 MB / 0.8876 GB, free: 69.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009037/3.898, allocations: 59.19 kB / 0.8876 GB, free: 69.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08571/3.984, allocations: 27.69 MB / 0.9147 GB, free: 60.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.419e-05/3.984, allocations: 9.594 kB / 0.9147 GB, free: 60.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08056/4.065, allocations: 15.67 MB / 0.93 GB, free: 55.33 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005188/4.07, allocations: 1.273 MB / 0.9312 GB, free: 54.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002831/4.073, allocations: 60.47 kB / 0.9313 GB, free: 54.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006878/4.08, allocations: 255.6 kB / 0.9315 GB, free: 54.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001568/4.081, allocations: 239.5 kB / 0.9318 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006618/4.082, allocations: 90.81 kB / 0.9318 GB, free: 54.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01298/4.095, allocations: 4.519 MB / 0.9363 GB, free: 53.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.212e-06/4.095, allocations: 3.438 kB / 0.9363 GB, free: 53.24 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01286/4.108, allocations: 1.964 MB / 0.9382 GB, free: 53.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.w) * 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 (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001367/4.109, allocations: 215.4 kB / 0.9384 GB, free: 52.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02702/4.136, allocations: 10.17 MB / 0.9483 GB, free: 49.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.632e-05/4.137, allocations: 7.938 kB / 0.9483 GB, free: 49.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01305/4.15, allocations: 4.515 MB / 0.9527 GB, free: 47.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007967/4.158, allocations: 0.9771 MB / 0.9537 GB, free: 46.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05129/4.209, allocations: 21.62 MB / 0.9748 GB, free: 26.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/4.222, allocations: 5.708 MB / 0.9804 GB, free: 22.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01211/4.234, allocations: 2.63 MB / 0.9829 GB, free: 21.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002093/4.236, allocations: 390.4 kB / 0.9833 GB, free: 20.72 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/4.236, allocations: 4 kB / 0.9833 GB, free: 20.72 MB / 442.7 MB Notification: Performance of Templates: time 0.5612/4.797, allocations: 83.9 MB / 1.065 GB, free: 56.04 MB / 442.7 MB