Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.727/1.727, allocations: 171.2 MB / 186.1 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004875/0.0004874, allocations: 12 kB / 233.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08484, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4611, allocations: 86.53 MB / 358.7 MB, free: 2.617 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.4615, allocations: 94.8 kB / 358.8 MB, free: 2.562 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9504/1.412, allocations: 165.1 MB / 0.5116 GB, free: 38.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.412, allocations: 0 / 0.5116 GB, free: 38.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007454/1.413, allocations: 168 kB / 0.5118 GB, free: 37.85 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.03718/1.45, allocations: 9.311 MB / 0.5208 GB, free: 28.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.45, allocations: 12.03 kB / 0.5209 GB, free: 28.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006235/1.456, allocations: 1.26 MB / 0.5221 GB, free: 27.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1371/1.593, allocations: 16.53 MB / 0.5382 GB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6688/2.262, allocations: 13.82 MB / 0.5517 GB, free: 40.84 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007935/2.263, allocations: 0.5496 MB / 0.5523 GB, free: 40.82 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004368/2.267, allocations: 0.7559 MB / 0.553 GB, free: 40.82 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05917/2.327, allocations: 16.96 MB / 0.5696 GB, free: 37.21 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008021/2.328, allocations: 109.5 kB / 0.5697 GB, free: 37.21 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004373/2.332, allocations: 348.8 kB / 0.57 GB, free: 37.21 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005933/2.338, allocations: 1.525 MB / 0.5715 GB, free: 37.2 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04586/2.384, allocations: 13.34 MB / 0.5845 GB, free: 37.14 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1429/2.527, allocations: 74.76 MB / 0.6575 GB, free: 1.215 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04691/2.574, allocations: 7.959 MB / 0.6653 GB, free: 13.91 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03293/2.607, allocations: 11.93 MB / 0.6769 GB, free: 3.68 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.093e-05/2.607, allocations: 70.88 kB / 0.677 GB, free: 3.605 MB / 378.8 MB Notification: Performance of pre-optimization done (n=293): time 6.953e-06/2.607, allocations: 4 kB / 0.677 GB, free: 3.602 MB / 378.8 MB Notification: Performance of matching and sorting (n=366): time 0.572/3.179, allocations: 43.28 MB / 0.7193 GB, free: 82.64 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/3.179, allocations: 407 kB / 0.7197 GB, free: 82.2 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01696/3.196, allocations: 6.423 MB / 0.7259 GB, free: 81.71 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001005/3.197, allocations: 87.64 kB / 0.726 GB, free: 81.68 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005996/3.203, allocations: 5.429 MB / 0.7313 GB, free: 79.22 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002459/3.206, allocations: 1.342 MB / 0.7326 GB, free: 78.43 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001158/3.207, allocations: 170.6 kB / 0.7328 GB, free: 78.43 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0006002/3.208, allocations: 0.6801 MB / 0.7335 GB, free: 78.11 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009198/3.217, allocations: 3.533 MB / 0.7369 GB, free: 78.08 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01321/3.23, allocations: 8.4 MB / 0.7451 GB, free: 71.88 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/3.243, allocations: 5.318 MB / 0.7503 GB, free: 71.83 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002223/3.244, allocations: 52.09 kB / 0.7504 GB, free: 71.83 MB / 394.8 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04997/3.294, allocations: 14.96 MB / 0.765 GB, free: 67.29 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001687/3.294, allocations: 81.5 kB / 0.765 GB, free: 67.29 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003386/3.294, allocations: 167.1 kB / 0.7652 GB, free: 67.29 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01997/3.314, allocations: 3.736 MB / 0.7689 GB, free: 66.58 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01204/3.326, allocations: 1.855 MB / 0.7707 GB, free: 66.36 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05721/3.383, allocations: 24.73 MB / 0.7948 GB, free: 49.81 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01158/3.395, allocations: 0.4893 MB / 0.7953 GB, free: 49.39 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00227/3.397, allocations: 0.4948 MB / 0.7958 GB, free: 48.91 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1001): * Single equations (assignments): 995 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0108/3.408, allocations: 3.625 MB / 0.7993 GB, free: 45.75 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00221/3.41, allocations: 0.6826 MB / 0.8 GB, free: 45.06 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0318/3.442, allocations: 8.916 MB / 0.8087 GB, free: 38 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.05e-05/3.442, allocations: 47.64 kB / 0.8087 GB, free: 37.96 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.541e-05/3.442, allocations: 19.91 kB / 0.8088 GB, free: 37.94 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.22e-05/3.443, allocations: 23.12 kB / 0.8088 GB, free: 37.94 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06345/3.506, allocations: 19.51 MB / 0.8278 GB, free: 22.06 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-05/3.506, allocations: 8 kB / 0.8278 GB, free: 22.05 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004155/3.51, allocations: 446.9 kB / 0.8283 GB, free: 21.68 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01871/3.529, allocations: 3.498 MB / 0.8317 GB, free: 19.15 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009073/3.53, allocations: 71.83 kB / 0.8318 GB, free: 19.09 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3698/3.9, allocations: 24.06 MB / 0.8553 GB, free: 74.09 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/3.9, allocations: 10.75 kB / 0.8553 GB, free: 74.09 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05325/3.953, allocations: 15.05 MB / 0.87 GB, free: 71.46 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006985/3.96, allocations: 1.225 MB / 0.8712 GB, free: 71.37 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002969/3.963, allocations: 70.66 kB / 0.8712 GB, free: 71.37 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0085/3.972, allocations: 215.4 kB / 0.8714 GB, free: 71.37 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00177/3.974, allocations: 270.1 kB / 0.8717 GB, free: 71.36 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006123/3.974, allocations: 99.09 kB / 0.8718 GB, free: 71.36 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01593/3.99, allocations: 4.646 MB / 0.8763 GB, free: 71.14 MB / 394.8 MB Notification: Performance of sort global known variables: time 7.91e-07/3.99, allocations: 0 / 0.8763 GB, free: 71.14 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01255/4.003, allocations: 2.006 MB / 0.8783 GB, free: 71.14 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0412/4.044, allocations: 17.05 MB / 0.8949 GB, free: 62.9 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02602/4.07, allocations: 9.398 MB / 0.9041 GB, free: 59.76 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 3.164e-05/4.07, allocations: 0.9375 kB / 0.9041 GB, free: 59.76 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01331/4.084, allocations: 4.198 MB / 0.9082 GB, free: 57.99 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01016/4.094, allocations: 1.017 MB / 0.9092 GB, free: 57.61 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.551/4.645, allocations: 193.7 MB / 1.098 GB, free: 14.32 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01654/4.662, allocations: 5.934 MB / 1.104 GB, free: 13.41 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.01504/4.677, allocations: 2.786 MB / 1.107 GB, free: 13.34 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01005/4.687, allocations: 3.955 MB / 1.111 GB, free: 13.34 MB / 426.8 MB Notification: Performance of SimCode: time 1.472e-06/4.687, allocations: 0 / 1.111 GB, free: 13.34 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6826/5.369, allocations: 162.5 MB / 1.269 GB, free: 40.04 MB / 426.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000297/5.37, allocations: 207.6 kB / 1.27 GB, free: 39.8 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.731/14.1, allocations: 0.9844 kB / 1.27 GB, free: 39.8 MB / 426.8 MB