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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.8 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 8 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3319, allocations: 44.51 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1684/0.5004, allocations: 90.74 MB / 399.3 MB, free: 1.797 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003732/0.5008, allocations: 91.95 kB / 399.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9836/1.484, allocations: 159.9 MB / 0.5462 GB, free: 13.01 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.975e-06/1.485, allocations: 0 / 0.5462 GB, free: 13.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008004/1.485, allocations: 156 kB / 0.5463 GB, free: 12.86 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: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.04031/1.526, allocations: 8.973 MB / 0.5551 GB, free: 3.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.906e-05/1.526, allocations: 8.031 kB / 0.5551 GB, free: 3.781 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009279/1.535, allocations: 1.206 MB / 0.5563 GB, free: 2.562 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7568/2.292, allocations: 16.46 MB / 0.5724 GB, free: 48.77 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04538/2.337, allocations: 13.56 MB / 0.5856 GB, free: 48.29 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006762/2.338, allocations: 0.5237 MB / 0.5861 GB, free: 48.27 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00365/2.342, allocations: 0.7208 MB / 0.5868 GB, free: 48.26 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05066/2.392, allocations: 16.38 MB / 0.6028 GB, free: 44.67 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007268/2.393, allocations: 113.7 kB / 0.6029 GB, free: 44.66 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003306/2.397, allocations: 335.1 kB / 0.6032 GB, free: 44.66 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003616/2.4, allocations: 1.481 MB / 0.6047 GB, free: 44.64 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04267/2.443, allocations: 12.92 MB / 0.6173 GB, free: 44.13 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1192/2.562, allocations: 73.31 MB / 0.6889 GB, free: 1.875 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07335/2.636, allocations: 8.52 MB / 0.6972 GB, free: 14.05 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0461/2.682, allocations: 11.58 MB / 0.7085 GB, free: 4.262 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/2.682, allocations: 64.56 kB / 0.7086 GB, free: 4.191 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 1.038e-05/2.682, allocations: 3.188 kB / 0.7086 GB, free: 4.191 MB / 426.8 MB Notification: Performance of matching and sorting (n=339): time 0.6421/3.324, allocations: 45.51 MB / 0.753 GB, free: 71.93 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/3.324, allocations: 407.6 kB / 0.7534 GB, free: 71.49 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01638/3.341, allocations: 6.239 MB / 0.7595 GB, free: 71.01 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009732/3.342, allocations: 81.84 kB / 0.7596 GB, free: 70.98 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005269/3.347, allocations: 5.222 MB / 0.7647 GB, free: 68.77 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002128/3.349, allocations: 1.25 MB / 0.7659 GB, free: 68.04 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/3.35, allocations: 166.2 kB / 0.7661 GB, free: 68.04 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0006893/3.351, allocations: 0.6468 MB / 0.7667 GB, free: 67.71 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0096/3.361, allocations: 3.795 MB / 0.7704 GB, free: 67.69 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01294/3.374, allocations: 8.439 MB / 0.7786 GB, free: 61.73 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01262/3.386, allocations: 5.511 MB / 0.784 GB, free: 61.6 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001824/3.387, allocations: 45.94 kB / 0.7841 GB, free: 61.6 MB / 426.8 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05666/3.443, allocations: 16.68 MB / 0.8004 GB, free: 56.33 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/3.444, allocations: 76 kB / 0.8004 GB, free: 56.26 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002481/3.444, allocations: 160 kB / 0.8006 GB, free: 56.1 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02898/3.473, allocations: 5.517 MB / 0.806 GB, free: 52.28 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01074/3.484, allocations: 1.786 MB / 0.8077 GB, free: 50.73 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06122/3.545, allocations: 28.96 MB / 0.836 GB, free: 25.65 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01124/3.556, allocations: 0.5169 MB / 0.8365 GB, free: 25.22 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002028/3.558, allocations: 480 kB / 0.837 GB, free: 24.76 MB / 426.8 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.009836/3.568, allocations: 3.474 MB / 0.8403 GB, free: 21.73 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00206/3.57, allocations: 0.6517 MB / 0.841 GB, free: 21.07 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04213/3.612, allocations: 10.97 MB / 0.8517 GB, free: 12.63 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.999e-05/3.612, allocations: 36.62 kB / 0.8517 GB, free: 12.6 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.702e-05/3.613, allocations: 16 kB / 0.8517 GB, free: 12.58 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.968e-05/3.613, allocations: 18.16 kB / 0.8518 GB, free: 12.58 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4016/4.014, allocations: 23.99 MB / 0.8752 GB, free: 78.34 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.567e-05/4.014, allocations: 6.156 kB / 0.8752 GB, free: 78.34 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003795/4.018, allocations: 425.4 kB / 0.8756 GB, free: 78.34 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02826/4.046, allocations: 5.097 MB / 0.8806 GB, free: 78.3 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009247/4.047, allocations: 64.78 kB / 0.8806 GB, free: 78.3 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06251/4.11, allocations: 27.69 MB / 0.9077 GB, free: 74.34 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/4.11, allocations: 14.69 kB / 0.9077 GB, free: 74.34 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0506/4.161, allocations: 16.86 MB / 0.9242 GB, free: 70.84 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005349/4.166, allocations: 1.265 MB / 0.9254 GB, free: 70.48 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002732/4.169, allocations: 59.62 kB / 0.9255 GB, free: 70.44 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006914/4.176, allocations: 255.9 kB / 0.9257 GB, free: 70.4 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/4.177, allocations: 242.8 kB / 0.9259 GB, free: 70.36 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006552/4.178, allocations: 86.12 kB / 0.926 GB, free: 70.34 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0126/4.191, allocations: 4.524 MB / 0.9304 GB, free: 68.88 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.001e-06/4.191, allocations: 0 / 0.9304 GB, free: 68.88 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01267/4.203, allocations: 1.967 MB / 0.9324 GB, free: 68.68 MB / 442.8 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.05053/4.254, allocations: 18.59 MB / 0.9505 GB, free: 60.19 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0268/4.281, allocations: 10.13 MB / 0.9604 GB, free: 56.67 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-05/4.281, allocations: 2.5 kB / 0.9604 GB, free: 56.67 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01361/4.295, allocations: 4.485 MB / 0.9648 GB, free: 54.55 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008717/4.303, allocations: 0.992 MB / 0.9657 GB, free: 53.75 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5595/4.863, allocations: 189.3 MB / 1.151 GB, free: 17.93 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01485/4.878, allocations: 5.713 MB / 1.156 GB, free: 17.03 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01327/4.891, allocations: 2.633 MB / 1.159 GB, free: 16.97 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008779/4.9, allocations: 3.741 MB / 1.162 GB, free: 16.96 MB / 474.8 MB Notification: Performance of SimCode: time 1.352e-06/4.9, allocations: 0 / 1.162 GB, free: 16.96 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6944/5.594, allocations: 159.7 MB / 1.318 GB, free: 68.49 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/5.595, allocations: 227.5 kB / 1.319 GB, free: 68.24 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.225/14.82, allocations: 0 / 1.319 GB, free: 68.24 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat