Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.BodyShape.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.BodyShape,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.171/2.171, allocations: 235.1 MB / 243 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.91e-05/1.912e-05, allocations: 4 kB / 303.3 MB, free: 3.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.3853, allocations: 54.87 MB / 358.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1765/0.5618, allocations: 98.8 MB / 456.9 MB, free: 12.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.5622, allocations: 71.97 kB / 457 MB, free: 12.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6116/1.174, allocations: 80.28 MB / 0.5247 GB, free: 74.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.174, allocations: 0 / 0.5247 GB, free: 74.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002629/1.174, allocations: 84 kB / 0.5248 GB, free: 74.81 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1491 * Number of variables: 1491 Notification: Performance of Generate backend data structure: time 0.01451/1.189, allocations: 3.926 MB / 0.5286 GB, free: 70.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/1.189, allocations: 12.03 kB / 0.5286 GB, free: 70.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01822/1.207, allocations: 2.33 MB / 0.5309 GB, free: 68.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/1.224, allocations: 5.18 MB / 0.5359 GB, free: 63.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/1.225, allocations: 144 kB / 0.5361 GB, free: 63.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002136/1.227, allocations: 244 kB / 0.5363 GB, free: 62.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01434/1.241, allocations: 5.998 MB / 0.5422 GB, free: 56.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02095/1.262, allocations: 9.296 MB / 0.5513 GB, free: 46.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002078/1.263, allocations: 59.47 kB / 0.5513 GB, free: 46.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009261/1.263, allocations: 32 kB / 0.5513 GB, free: 46.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00195/1.265, allocations: 0.994 MB / 0.5523 GB, free: 45.47 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06871/1.334, allocations: 47.49 MB / 0.5987 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005294/1.34, allocations: 2.516 MB / 0.6011 GB, free: 9.852 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003034/1.343, allocations: 1.427 MB / 0.6025 GB, free: 8.414 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006031/1.343, allocations: 354.7 kB / 0.6029 GB, free: 8.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.682e-05/1.343, allocations: 43.34 kB / 0.6029 GB, free: 7.969 MB / 426.7 MB Notification: Performance of pre-optimization done (n=145): time 6.002e-06/1.343, allocations: 0 / 0.6029 GB, free: 7.969 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.04737/1.391, allocations: 12.97 MB / 0.6156 GB, free: 10.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.477e-05/1.391, allocations: 141.8 kB / 0.6157 GB, free: 10.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007315/1.398, allocations: 3.067 MB / 0.6187 GB, free: 7.637 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004262/1.399, allocations: 29.7 kB / 0.6187 GB, free: 7.602 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003629/1.402, allocations: 3.158 MB / 0.6218 GB, free: 4.398 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001253/1.404, allocations: 0.6441 MB / 0.6225 GB, free: 3.746 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006461/1.404, allocations: 0 / 0.6225 GB, free: 3.746 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005455/1.405, allocations: 0.5792 MB / 0.623 GB, free: 3.156 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005149/1.41, allocations: 1.926 MB / 0.6249 GB, free: 1.227 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00953/1.42, allocations: 5.839 MB / 0.6306 GB, free: 9.406 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008516/1.428, allocations: 3.319 MB / 0.6338 GB, free: 6.082 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/1.428, allocations: 40 kB / 0.6339 GB, free: 6.043 MB / 458.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.02474/1.453, allocations: 7.589 MB / 0.6413 GB, free: 14.44 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/1.453, allocations: 71.92 kB / 0.6414 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00861/1.462, allocations: 2.499 MB / 0.6438 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006084/1.468, allocations: 1.139 MB / 0.6449 GB, free: 10.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00864/1.477, allocations: 1.447 MB / 0.6463 GB, free: 9.262 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00781/1.485, allocations: 4.497 MB / 0.6507 GB, free: 4.531 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006645/1.491, allocations: 279.4 kB / 0.651 GB, free: 4.258 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/1.493, allocations: 396 kB / 0.6514 GB, free: 3.871 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 643 * Number of states: 0 () * Number of discrete variables: 36 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (782): * Single equations (assignments): 773 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001121/1.494, allocations: 453.2 kB / 0.6518 GB, free: 3.422 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01041/1.504, allocations: 3.241 MB / 0.655 GB, free: 164 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3212/1.825, allocations: 314.6 kB / 0.6553 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/1.838, allocations: 2.865 MB / 0.6581 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01123/1.849, allocations: 2.431 MB / 0.6604 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.322e-05/1.849, allocations: 3.234 kB / 0.6604 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.969e-05/1.85, allocations: 7.359 kB / 0.6604 GB, free: 126.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02946/1.879, allocations: 8.786 MB / 0.669 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/1.879, allocations: 11.08 kB / 0.669 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002405/1.882, allocations: 259.2 kB / 0.6693 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005334/1.887, allocations: 1.001 MB / 0.6703 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004241/1.887, allocations: 23.81 kB / 0.6703 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008251/1.896, allocations: 4.727 MB / 0.6749 GB, free: 123.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001066/1.897, allocations: 1.394 MB / 0.6763 GB, free: 121.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/1.91, allocations: 5.595 MB / 0.6817 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/1.911, allocations: 375.6 kB / 0.6821 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001155/1.912, allocations: 16.25 kB / 0.6821 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003092/1.915, allocations: 107.9 kB / 0.6822 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005699/1.916, allocations: 105.8 kB / 0.6823 GB, free: 120.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001843/1.916, allocations: 52.02 kB / 0.6823 GB, free: 120.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004974/1.921, allocations: 2.023 MB / 0.6843 GB, free: 119.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.921, allocations: 4.047 kB / 0.6843 GB, free: 119.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007235/1.928, allocations: 0.9062 MB / 0.6852 GB, free: 119.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 12 ($STATESET5012316552.x[3],$STATESET5012316552.x[2],$STATESET5012316552.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01368/1.942, allocations: 7.08 MB / 0.6921 GB, free: 115.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01265/1.955, allocations: 5.211 MB / 0.6972 GB, free: 114.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.955, allocations: 4 kB / 0.6972 GB, free: 114.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006264/1.961, allocations: 2.101 MB / 0.6993 GB, free: 113.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003207/1.964, allocations: 353.9 kB / 0.6996 GB, free: 113.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04005/2.005, allocations: 9.471 MB / 0.7089 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01139/2.016, allocations: 3.304 MB / 0.7121 GB, free: 106.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006621/2.023, allocations: 1.893 MB / 0.7139 GB, free: 104.9 MB / 474.7 MB Notification: Performance of SimCode: time 4.148e-06/2.023, allocations: 0 / 0.7139 GB, free: 104.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.87/6.892, allocations: 146.3 MB / 0.8568 GB, free: 140.5 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.BodyShape_res.mat does not exist to compare? outputFormat=mat