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.Engine1b.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.000364, allocations: 12 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3231, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2125/0.5356, allocations: 92.25 MB / 400.8 MB, free: 284 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.536, allocations: 91.95 kB / 400.9 MB, free: 192 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8928/1.429, allocations: 165.1 MB / 0.5528 GB, free: 6.242 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.429, allocations: 0 / 0.5528 GB, free: 6.242 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008169/1.43, allocations: 164 kB / 0.5529 GB, free: 6.082 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.6136/2.043, allocations: 9.304 MB / 0.562 GB, free: 43.92 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/2.043, allocations: 7.75 kB / 0.562 GB, free: 43.92 MB / 394.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00629/2.05, allocations: 1.255 MB / 0.5632 GB, free: 43.82 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1153/2.165, allocations: 16.54 MB / 0.5794 GB, free: 43.26 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04561/2.211, allocations: 13.83 MB / 0.5929 GB, free: 42.62 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007793/2.212, allocations: 0.5503 MB / 0.5934 GB, free: 42.61 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003864/2.215, allocations: 0.7613 MB / 0.5942 GB, free: 42.59 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05422/2.27, allocations: 16.95 MB / 0.6107 GB, free: 38.99 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006435/2.27, allocations: 108.3 kB / 0.6108 GB, free: 38.98 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003231/2.274, allocations: 349.1 kB / 0.6112 GB, free: 38.98 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003367/2.277, allocations: 1.538 MB / 0.6127 GB, free: 38.96 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04283/2.32, allocations: 13.33 MB / 0.6257 GB, free: 37.6 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1287/2.449, allocations: 74.76 MB / 0.6987 GB, free: 7.254 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0326/2.481, allocations: 7.1 MB / 0.7056 GB, free: 1.355 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03267/2.514, allocations: 11.93 MB / 0.7173 GB, free: 7.059 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.086e-05/2.514, allocations: 74.64 kB / 0.7174 GB, free: 6.988 MB / 442.8 MB Notification: Performance of pre-optimization done (n=293): time 8.416e-06/2.514, allocations: 0 / 0.7174 GB, free: 6.988 MB / 442.8 MB Notification: Performance of matching and sorting (n=366): time 0.5743/3.089, allocations: 42.65 MB / 0.759 GB, free: 85.88 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/3.089, allocations: 406.6 kB / 0.7594 GB, free: 85.43 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01668/3.105, allocations: 6.41 MB / 0.7657 GB, free: 84.95 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009396/3.106, allocations: 82.77 kB / 0.7657 GB, free: 84.92 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005888/3.112, allocations: 5.437 MB / 0.771 GB, free: 82.59 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002229/3.115, allocations: 1.339 MB / 0.7724 GB, free: 81.8 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/3.116, allocations: 181.2 kB / 0.7725 GB, free: 81.8 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0007774/3.117, allocations: 0.6684 MB / 0.7732 GB, free: 81.47 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009178/3.126, allocations: 3.538 MB / 0.7766 GB, free: 81.45 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01246/3.139, allocations: 8.391 MB / 0.7848 GB, free: 75.24 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01238/3.151, allocations: 5.318 MB / 0.79 GB, free: 75.18 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002131/3.151, allocations: 51.36 kB / 0.7901 GB, free: 75.18 MB / 442.8 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.06584/3.217, allocations: 14.96 MB / 0.8047 GB, free: 72.61 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002448/3.217, allocations: 78.3 kB / 0.8047 GB, free: 72.61 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004334/3.218, allocations: 168.6 kB / 0.8049 GB, free: 72.61 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03017/3.248, allocations: 3.733 MB / 0.8086 GB, free: 71.88 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01697/3.265, allocations: 1.859 MB / 0.8104 GB, free: 71.66 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08128/3.346, allocations: 24.73 MB / 0.8345 GB, free: 52.55 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01681/3.363, allocations: 0.4928 MB / 0.835 GB, free: 52.12 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002729/3.366, allocations: 497.7 kB / 0.8355 GB, free: 51.65 MB / 442.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.01397/3.38, allocations: 3.618 MB / 0.839 GB, free: 48.49 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00253/3.383, allocations: 0.6788 MB / 0.8397 GB, free: 47.8 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04465/3.427, allocations: 8.94 MB / 0.8484 GB, free: 40.7 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.426e-05/3.428, allocations: 39.89 kB / 0.8484 GB, free: 40.66 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.305e-05/3.428, allocations: 20 kB / 0.8485 GB, free: 40.64 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.865e-05/3.428, allocations: 16.92 kB / 0.8485 GB, free: 40.64 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07772/3.506, allocations: 19.51 MB / 0.8675 GB, free: 24.73 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.852e-05/3.506, allocations: 9 kB / 0.8675 GB, free: 24.72 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003964/3.51, allocations: 457.7 kB / 0.868 GB, free: 24.35 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01859/3.528, allocations: 3.493 MB / 0.8714 GB, free: 21.83 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00091/3.529, allocations: 72.17 kB / 0.8715 GB, free: 21.76 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4061/3.935, allocations: 24.13 MB / 0.895 GB, free: 76.44 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/3.935, allocations: 14.56 kB / 0.895 GB, free: 76.44 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04014/3.976, allocations: 15.04 MB / 0.9097 GB, free: 73.82 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005479/3.981, allocations: 1.223 MB / 0.9109 GB, free: 73.72 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002934/3.984, allocations: 68.5 kB / 0.911 GB, free: 73.72 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006867/3.991, allocations: 215 kB / 0.9112 GB, free: 73.72 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001684/3.993, allocations: 274.8 kB / 0.9115 GB, free: 73.71 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005032/3.993, allocations: 102.8 kB / 0.9115 GB, free: 73.71 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01253/4.006, allocations: 4.636 MB / 0.9161 GB, free: 73.5 MB / 442.8 MB Notification: Performance of sort global known variables: time 5.81e-07/4.006, allocations: 0 / 0.9161 GB, free: 73.5 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01231/4.018, allocations: 2.001 MB / 0.918 GB, free: 73.5 MB / 442.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.04104/4.059, allocations: 17.05 MB / 0.9347 GB, free: 69.11 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02208/4.081, allocations: 9.396 MB / 0.9439 GB, free: 66.13 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/4.082, allocations: 0 / 0.9439 GB, free: 66.13 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01626/4.098, allocations: 4.213 MB / 0.948 GB, free: 64.35 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0096/4.107, allocations: 1.006 MB / 0.949 GB, free: 63.97 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5885/4.696, allocations: 193.6 MB / 1.138 GB, free: 42.79 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01635/4.712, allocations: 5.933 MB / 1.144 GB, free: 41.88 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01482/4.727, allocations: 2.781 MB / 1.147 GB, free: 41.82 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01005/4.737, allocations: 3.954 MB / 1.15 GB, free: 41.82 MB / 474.8 MB Notification: Performance of SimCode: time 2.675e-06/4.737, allocations: 0 / 1.15 GB, free: 41.82 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7596/5.497, allocations: 162.5 MB / 1.309 GB, free: 76.49 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002748/5.497, allocations: 208 kB / 1.309 GB, free: 76.25 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.211/14.71, allocations: 3.938 kB / 1.309 GB, free: 76.25 MB / 474.8 MB