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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.244/2.244, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005953/0.0005954, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3367, allocations: 54.87 MB / 369.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.BodyShape): time 0.05755/0.3943, allocations: 37.85 MB / 407.1 MB, free: 4.633 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02679/0.4211, allocations: 9.436 MB / 416.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007466/0.4287, allocations: 187.6 kB / 416.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00674/0.4355, allocations: 1.898 MB / 418.6 MB, free: 9.078 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02082/0.4563, allocations: 5.482 MB / 424.1 MB, free: 3.582 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003776/0.4602, allocations: 0.585 MB / 424.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006258/0.4665, allocations: 2.411 MB / 427.1 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008452/0.475, allocations: 3.994 MB / 431.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002522/0.4775, allocations: 1.012 MB / 432.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002923/0.4805, allocations: 1.273 MB / 433.4 MB, free: 10.22 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008344/0.4814, allocations: 136 kB / 433.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002894/0.4843, allocations: 0.944 MB / 434.5 MB, free: 9.145 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002732/0.4871, allocations: 1.555 MB / 436 MB, free: 7.586 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001408/0.4885, allocations: 0.8233 MB / 436.9 MB, free: 6.754 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009007/0.4975, allocations: 5.406 MB / 442.3 MB, free: 1.336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4976, allocations: 0 / 442.3 MB, free: 1.336 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4976, allocations: 0 / 442.3 MB, free: 1.336 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002215/0.4978, allocations: 0 / 442.3 MB, free: 1.336 MB / 362.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.01213/0.51, allocations: 3.987 MB / 446.2 MB, free: 13.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.5101, allocations: 8.031 kB / 446.3 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002345/0.5124, allocations: 0.7111 MB / 447 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0149/0.5273, allocations: 2.299 MB / 449.3 MB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007826/0.5352, allocations: 2.698 MB / 452 MB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003134/0.5356, allocations: 234 kB / 452.2 MB, free: 7.254 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002131/0.5377, allocations: 403.4 kB / 452.6 MB, free: 6.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02765/0.5654, allocations: 10.03 MB / 462.6 MB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001829/0.5657, allocations: 51.47 kB / 462.7 MB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008827/0.5665, allocations: 147.9 kB / 462.8 MB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005104/0.5717, allocations: 1.845 MB / 464.7 MB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.5987, allocations: 8.466 MB / 473.1 MB, free: 1.613 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3571/0.9558, allocations: 39.23 MB / 0.5003 GB, free: 59.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/0.9698, allocations: 3.601 MB / 0.5039 GB, free: 57.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/0.984, allocations: 7.186 MB / 0.5109 GB, free: 50.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.9841, allocations: 55.48 kB / 0.5109 GB, free: 50.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 5.22e-06/0.9841, allocations: 0 / 0.5109 GB, free: 50.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=155): time 0.05607/1.04, allocations: 14.46 MB / 0.525 GB, free: 35.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001277/1.042, allocations: 1.599 MB / 0.5266 GB, free: 33.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006546/1.048, allocations: 4.124 MB / 0.5306 GB, free: 29.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004112/1.049, allocations: 49.89 kB / 0.5307 GB, free: 29.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/1.051, allocations: 3.07 MB / 0.5337 GB, free: 26.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008105/1.051, allocations: 0.6315 MB / 0.5343 GB, free: 25.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/1.052, allocations: 116 kB / 0.5344 GB, free: 25.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003205/1.052, allocations: 0.5668 MB / 0.535 GB, free: 25.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004363/1.057, allocations: 2.05 MB / 0.537 GB, free: 23.01 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006126/1.063, allocations: 5.849 MB / 0.5427 GB, free: 15.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006765/1.07, allocations: 3.371 MB / 0.546 GB, free: 11.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.373e-05/1.07, allocations: 40 kB / 0.546 GB, free: 11.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.03144/1.101, allocations: 9.262 MB / 0.5551 GB, free: 2.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.222e-05/1.101, allocations: 60 kB / 0.5551 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01938/1.121, allocations: 3.562 MB / 0.5586 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01976/1.14, allocations: 2.289 MB / 0.5608 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008029/1.149, allocations: 1.388 MB / 0.5622 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/1.165, allocations: 6.648 MB / 0.5687 GB, free: 4.324 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006577/1.172, allocations: 399.3 kB / 0.5691 GB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/1.173, allocations: 376 kB / 0.5694 GB, free: 3.566 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (745): * Single equations (assignments): 736 * 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.005284/1.178, allocations: 2.072 MB / 0.5714 GB, free: 1.484 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009192/1.179, allocations: 331.7 kB / 0.5717 GB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.19, allocations: 3.009 MB / 0.5747 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009481/1.199, allocations: 2.539 MB / 0.5772 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.049e-05/1.199, allocations: 4 kB / 0.5772 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.436e-05/1.2, allocations: 11.95 kB / 0.5772 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02781/1.227, allocations: 9.382 MB / 0.5863 GB, free: 2.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.528e-05/1.227, allocations: 4 kB / 0.5863 GB, free: 2.031 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/1.23, allocations: 251.6 kB / 0.5866 GB, free: 1.785 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006058/1.236, allocations: 1.065 MB / 0.5876 GB, free: 0.707 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003639/1.236, allocations: 47.97 kB / 0.5877 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00926/1.246, allocations: 4.89 MB / 0.5924 GB, free: 11.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001455/1.247, allocations: 1.47 MB / 0.5939 GB, free: 9.891 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01524/1.262, allocations: 5.376 MB / 0.5991 GB, free: 4.449 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/1.264, allocations: 400.5 kB / 0.5995 GB, free: 4.035 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008348/1.265, allocations: 43.81 kB / 0.5996 GB, free: 3.996 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.267, allocations: 127.8 kB / 0.5997 GB, free: 3.871 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003725/1.268, allocations: 108.7 kB / 0.5998 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001902/1.268, allocations: 51.98 kB / 0.5998 GB, free: 3.711 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005965/1.274, allocations: 2.579 MB / 0.6024 GB, free: 1.152 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.274, allocations: 480 / 0.6024 GB, free: 1.152 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006634/1.28, allocations: 1.048 MB / 0.6034 GB, free: 112 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 117 * 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.01543/1.296, allocations: 5.921 MB / 0.6092 GB, free: 10.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01599/1.312, allocations: 5.514 MB / 0.6145 GB, free: 4.562 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.312, allocations: 0 / 0.6145 GB, free: 4.562 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006934/1.319, allocations: 2.073 MB / 0.6166 GB, free: 2.418 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003227/1.322, allocations: 426.2 kB / 0.617 GB, free: 2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4053/1.728, allocations: 37.01 MB / 0.6531 GB, free: 169.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004649/1.732, allocations: 3.299 MB / 0.6563 GB, free: 168.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003609/1.736, allocations: 1.899 MB / 0.6582 GB, free: 167.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.473e-06/1.736, allocations: 0 / 0.6582 GB, free: 167.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.602/6.338, allocations: 148.9 MB / 0.8036 GB, free: 27.23 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