Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 0.9626/0.9626, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002489/0.000249, allocations: 8 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05127/0.05153, allocations: 25.16 MB / 184 MB, free: 6.012 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2294/0.281, allocations: 50.1 MB / 234.2 MB, free: 12.68 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.2814, allocations: 82.64 kB / 234.2 MB, free: 12.63 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.114/5.395, allocations: 0.6028 GB / 0.8315 GB, free: 29.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.785e-06/5.395, allocations: 0 / 0.8315 GB, free: 29.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0008611/5.396, allocations: 190 kB / 0.8317 GB, free: 29.18 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3032 * Number of variables: 3032 Notification: Performance of Generate backend data structure: time 0.7599/6.156, allocations: 50.69 MB / 0.8812 GB, free: 27.44 MB / 266.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/6.156, allocations: 6.844 kB / 0.8812 GB, free: 27.44 MB / 266.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 11.92/18.08, allocations: 1.156 GB / 2.037 GB, free: 46.41 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1019/18.18, allocations: 28.34 MB / 2.065 GB, free: 43.7 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009706/18.18, allocations: 0.6662 MB / 2.065 GB, free: 43.45 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.02296/18.21, allocations: 0.8837 MB / 2.066 GB, free: 43.18 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.522/21.73, allocations: 374.7 MB / 2.432 GB, free: 43.41 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009568/21.73, allocations: 89.23 kB / 2.432 GB, free: 43.41 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.02134/21.75, allocations: 396.7 kB / 2.433 GB, free: 43.41 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009354/21.76, allocations: 2.398 MB / 2.435 GB, free: 43.38 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.005/28.77, allocations: 0.7088 GB / 3.144 GB, free: 44.68 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.858/37.62, allocations: 1.031 GB / 4.175 GB, free: 43.28 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5315/38.15, allocations: 71.42 MB / 4.245 GB, free: 19.28 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.381/38.54, allocations: 55.53 MB / 4.299 GB, free: 51.79 MB / 330.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.891e-05/38.54, allocations: 77.94 kB / 4.299 GB, free: 51.72 MB / 330.8 MB Notification: Performance of pre-optimization done (n=335): time 7.353e-06/38.54, allocations: 0 / 4.299 GB, free: 51.72 MB / 330.8 MB Notification: Performance of matching and sorting (n=394): time 1.948/40.48, allocations: 198.8 MB / 4.493 GB, free: 73.77 MB / 330.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/40.48, allocations: 402 kB / 4.494 GB, free: 73.32 MB / 330.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1268/40.61, allocations: 19.01 MB / 4.512 GB, free: 72.79 MB / 330.8 MB Notification: Performance of collectPreVariables (initialization): time 0.004031/40.62, allocations: 86.73 kB / 4.512 GB, free: 72.76 MB / 330.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006/40.62, allocations: 6.034 MB / 4.518 GB, free: 70.2 MB / 330.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005464/40.63, allocations: 1.471 MB / 4.52 GB, free: 69.35 MB / 330.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006045/40.63, allocations: 212.8 kB / 4.52 GB, free: 69.35 MB / 330.8 MB Notification: Performance of setup shared object (initialization): time 0.001334/40.63, allocations: 0.7581 MB / 4.521 GB, free: 69.02 MB / 330.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7412/41.38, allocations: 67.01 MB / 4.586 GB, free: 73.09 MB / 330.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5123/41.89, allocations: 73.13 MB / 4.658 GB, free: 57.37 MB / 330.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.6743/42.56, allocations: 55.88 MB / 4.712 GB, free: 64.92 MB / 330.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002114/42.56, allocations: 62 kB / 4.712 GB, free: 64.92 MB / 330.8 MB Notification: Performance of matching and sorting (n=1381) (initialization): time 1.232/43.79, allocations: 131.8 MB / 4.841 GB, free: 60.19 MB / 330.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001802/43.79, allocations: 93.69 kB / 4.841 GB, free: 60.19 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003979/43.8, allocations: 213.4 kB / 4.841 GB, free: 60.19 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02808/43.82, allocations: 5.066 MB / 4.846 GB, free: 60.15 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2372/44.06, allocations: 27.88 MB / 4.873 GB, free: 49.99 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2972/44.36, allocations: 27.61 MB / 4.9 GB, free: 57.2 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3901/44.75, allocations: 32.29 MB / 4.932 GB, free: 57.19 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01044/44.76, allocations: 1.376 MB / 4.933 GB, free: 57.19 MB / 330.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 967 * 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 (1245): * Single equations (assignments): 1239 * 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%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.02617/44.78, allocations: 4.175 MB / 4.937 GB, free: 56.93 MB / 330.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009445/44.79, allocations: 0.7609 MB / 4.938 GB, free: 56.93 MB / 330.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0638/44.86, allocations: 10.51 MB / 4.948 GB, free: 56.64 MB / 330.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/44.86, allocations: 40.61 kB / 4.948 GB, free: 56.64 MB / 330.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.942e-05/44.86, allocations: 19.03 kB / 4.948 GB, free: 56.64 MB / 330.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001186/44.86, allocations: 17.11 kB / 4.948 GB, free: 56.64 MB / 330.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1798/45.04, allocations: 50.49 MB / 4.998 GB, free: 28.36 MB / 330.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.577e-05/45.04, allocations: 8 kB / 4.998 GB, free: 28.35 MB / 330.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.4309/45.47, allocations: 21.9 MB / 5.019 GB, free: 60.34 MB / 330.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0271/45.5, allocations: 4.588 MB / 5.024 GB, free: 60.3 MB / 330.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004227/45.5, allocations: 0.614 MB / 5.024 GB, free: 60.3 MB / 330.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06122/45.56, allocations: 26.22 MB / 5.05 GB, free: 54.54 MB / 330.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/45.56, allocations: 11.44 kB / 5.05 GB, free: 54.54 MB / 330.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.51/47.07, allocations: 170 MB / 5.216 GB, free: 36.44 MB / 330.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0176/47.09, allocations: 4.412 MB / 5.22 GB, free: 32.42 MB / 330.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008363/47.1, allocations: 72 kB / 5.22 GB, free: 32.35 MB / 330.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.4846/47.58, allocations: 24.34 MB / 5.244 GB, free: 60.71 MB / 330.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001781/47.59, allocations: 286.7 kB / 5.244 GB, free: 60.71 MB / 330.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004088/47.59, allocations: 0.6675 MB / 5.245 GB, free: 60.71 MB / 330.8 MB Notification: Performance of sorting global known variables: time 0.1174/47.71, allocations: 15.38 MB / 5.26 GB, free: 60.46 MB / 330.8 MB Notification: Performance of sort global known variables: time 1.092e-06/47.71, allocations: 0 / 5.26 GB, free: 60.46 MB / 330.8 MB Notification: Performance of remove unused functions: time 0.02983/47.74, allocations: 3.625 MB / 5.263 GB, free: 60.46 MB / 330.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (269): * Single equations (assignments): 263 * 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.004187/47.74, allocations: 232.7 kB / 5.264 GB, free: 60.36 MB / 330.8 MB Notification: Performance of simCode: created initialization part: time 1.185/48.93, allocations: 127.4 MB / 5.388 GB, free: 59.96 MB / 330.8 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/48.93, allocations: 3.5 kB / 5.388 GB, free: 59.96 MB / 330.8 MB Notification: Performance of simCode: created simulation system equations: time 0.4137/49.34, allocations: 57.84 MB / 5.444 GB, free: 31.51 MB / 330.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01218/49.35, allocations: 1.021 MB / 5.445 GB, free: 30.53 MB / 330.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7314/50.08, allocations: 78.85 MB / 5.522 GB, free: 51.92 MB / 330.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01785/50.1, allocations: 6.69 MB / 5.529 GB, free: 50.98 MB / 330.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02789/50.13, allocations: 2.723 MB / 5.532 GB, free: 50.75 MB / 330.8 MB Notification: Performance of SimCode: time 1.813e-06/50.13, allocations: 0 / 5.532 GB, free: 50.75 MB / 330.8 MB Notification: Performance of Templates: time 1.918/52.05, allocations: 434.8 MB / 5.956 GB, free: 76.23 MB / 362.8 MB