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.Engine1a.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.Engine1a,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004891/0.0004893, allocations: 12 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08457/0.08511, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3687/0.4538, allocations: 85 MB / 357.1 MB, free: 4.207 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003365/0.4542, allocations: 90.12 kB / 357.2 MB, free: 4.156 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8656/1.32, allocations: 159.9 MB / 0.505 GB, free: 44.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.32, allocations: 4 kB / 0.505 GB, free: 44.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007137/1.321, allocations: 148 kB / 0.5051 GB, free: 44.41 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03874/1.359, allocations: 8.981 MB / 0.5139 GB, free: 35.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.359, allocations: 8.031 kB / 0.5139 GB, free: 35.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006303/1.366, allocations: 1.202 MB / 0.5151 GB, free: 34.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1156/1.481, allocations: 16.47 MB / 0.5312 GB, free: 17.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04381/1.525, allocations: 13.54 MB / 0.5444 GB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006342/1.526, allocations: 0.5216 MB / 0.5449 GB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003853/1.53, allocations: 0.7221 MB / 0.5456 GB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3602/1.89, allocations: 16.38 MB / 0.5616 GB, free: 43.39 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008547/1.891, allocations: 112.2 kB / 0.5617 GB, free: 43.39 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003098/1.894, allocations: 333.3 kB / 0.562 GB, free: 43.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003409/1.897, allocations: 1.48 MB / 0.5635 GB, free: 43.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04007/1.938, allocations: 12.91 MB / 0.5761 GB, free: 43.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1365/2.074, allocations: 73.3 MB / 0.6477 GB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05248/2.127, allocations: 7.505 MB / 0.655 GB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06034/2.187, allocations: 12.04 MB / 0.6668 GB, free: 0 / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/2.187, allocations: 68.83 kB / 0.6668 GB, free: 15.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 8.386e-06/2.187, allocations: 0 / 0.6668 GB, free: 15.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.6019/2.789, allocations: 45.58 MB / 0.7113 GB, free: 73.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/2.789, allocations: 392.9 kB / 0.7117 GB, free: 73.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01705/2.806, allocations: 6.248 MB / 0.7178 GB, free: 72.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00104/2.808, allocations: 75.84 kB / 0.7179 GB, free: 72.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00609/2.814, allocations: 5.22 MB / 0.723 GB, free: 70.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00248/2.816, allocations: 1.254 MB / 0.7242 GB, free: 69.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001262/2.818, allocations: 169 kB / 0.7244 GB, free: 69.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006312/2.818, allocations: 0.6548 MB / 0.725 GB, free: 69.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00977/2.828, allocations: 3.787 MB / 0.7287 GB, free: 69.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0133/2.841, allocations: 8.447 MB / 0.737 GB, free: 63.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/2.854, allocations: 5.491 MB / 0.7423 GB, free: 61.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002319/2.855, allocations: 45.78 kB / 0.7424 GB, free: 61.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05675/2.911, allocations: 16.69 MB / 0.7587 GB, free: 56.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/2.911, allocations: 79.81 kB / 0.7587 GB, free: 56.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002738/2.912, allocations: 161.2 kB / 0.7589 GB, free: 56.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03108/2.943, allocations: 5.508 MB / 0.7643 GB, free: 55.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01474/2.958, allocations: 1.79 MB / 0.766 GB, free: 54.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07861/3.036, allocations: 28.97 MB / 0.7943 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/3.047, allocations: 0.5138 MB / 0.7948 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002084/3.05, allocations: 477.2 kB / 0.7953 GB, free: 28.13 MB / 378.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.01004/3.06, allocations: 3.481 MB / 0.7987 GB, free: 25.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001952/3.062, allocations: 0.6581 MB / 0.7993 GB, free: 24.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04156/3.103, allocations: 10.95 MB / 0.81 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.226e-05/3.103, allocations: 35.95 kB / 0.81 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.781e-05/3.103, allocations: 23.56 kB / 0.8101 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.172e-05/3.103, allocations: 15.94 kB / 0.8101 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.363/3.466, allocations: 23.99 MB / 0.8335 GB, free: 65.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.837e-05/3.467, allocations: 6.094 kB / 0.8335 GB, free: 65.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004164/3.471, allocations: 428.5 kB / 0.8339 GB, free: 65.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02856/3.499, allocations: 5.092 MB / 0.8389 GB, free: 65.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009034/3.5, allocations: 61.39 kB / 0.8389 GB, free: 65.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05918/3.56, allocations: 27.7 MB / 0.866 GB, free: 60.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/3.56, allocations: 7.719 kB / 0.866 GB, free: 60.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04937/3.609, allocations: 16.87 MB / 0.8825 GB, free: 53.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005335/3.614, allocations: 1.265 MB / 0.8837 GB, free: 52.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00239/3.617, allocations: 63.08 kB / 0.8838 GB, free: 52.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007001/3.624, allocations: 253.8 kB / 0.884 GB, free: 52.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001546/3.625, allocations: 240.4 kB / 0.8842 GB, free: 52.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004183/3.626, allocations: 91.47 kB / 0.8843 GB, free: 52.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01353/3.639, allocations: 4.527 MB / 0.8887 GB, free: 51.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.092e-06/3.64, allocations: 0 / 0.8887 GB, free: 51.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01313/3.653, allocations: 1.96 MB / 0.8907 GB, free: 51.15 MB / 378.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.05087/3.704, allocations: 18.6 MB / 0.9088 GB, free: 39.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02649/3.73, allocations: 10.13 MB / 0.9187 GB, free: 31.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/3.73, allocations: 0 / 0.9187 GB, free: 31.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01355/3.744, allocations: 4.478 MB / 0.9231 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00944/3.753, allocations: 0.9955 MB / 0.9241 GB, free: 26.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5425/4.296, allocations: 189.3 MB / 1.109 GB, free: 6.762 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01593/4.312, allocations: 5.709 MB / 1.115 GB, free: 5.867 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01375/4.326, allocations: 2.637 MB / 1.117 GB, free: 5.727 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009489/4.335, allocations: 3.74 MB / 1.121 GB, free: 4.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/4.335, allocations: 0 / 1.121 GB, free: 4.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6813/5.017, allocations: 159.7 MB / 1.277 GB, free: 47.66 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003034/5.017, allocations: 215.5 kB / 1.277 GB, free: 47.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/13.63, allocations: 3.281 kB / 1.277 GB, free: 47.42 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat