Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.946/1.946, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004812, allocations: 16 kB / 282.7 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3619, allocations: 48.7 MB / 331.4 MB, free: 6.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1707/0.5326, allocations: 92.67 MB / 424 MB, free: 1.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.533, allocations: 75.95 kB / 424.1 MB, free: 1.527 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7433:35-7433:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7434:13-7434:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7456:35-7456:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7457:13-7457:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7478:35-7478:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7479:13-7479:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7506:35-7506:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7507:13-7507:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7518:35-7518:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/MultiBody.mo:7519:13-7519:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.8731/1.406, allocations: 142.3 MB / 0.5531 GB, free: 41.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.406, allocations: 0 / 0.5531 GB, free: 41.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005672/1.407, allocations: 151.9 kB / 0.5532 GB, free: 41.63 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.06422/1.471, allocations: 9.29 MB / 0.5623 GB, free: 32.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/1.471, allocations: 11.97 kB / 0.5623 GB, free: 32.25 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006249/1.477, allocations: 1.304 MB / 0.5636 GB, free: 30.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05807/1.535, allocations: 7.689 MB / 0.5711 GB, free: 23.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03919/1.575, allocations: 10.95 MB / 0.5818 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007977/1.576, allocations: 0.5577 MB / 0.5823 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004548/1.58, allocations: 0.769 MB / 0.5831 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06078/1.641, allocations: 17.61 MB / 0.6003 GB, free: 7.719 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007929/1.642, allocations: 103.1 kB / 0.6004 GB, free: 7.617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004565/1.646, allocations: 363.8 kB / 0.6007 GB, free: 7.262 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004583/1.651, allocations: 1.597 MB / 0.6023 GB, free: 5.664 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06943/1.72, allocations: 14.31 MB / 0.6163 GB, free: 7.328 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5082/2.229, allocations: 79 MB / 0.6934 GB, free: 24.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03458/2.263, allocations: 6.938 MB / 0.7002 GB, free: 24.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03515/2.299, allocations: 14.68 MB / 0.7145 GB, free: 18.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/2.299, allocations: 61.08 kB / 0.7146 GB, free: 18.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=259): time 6.752e-06/2.299, allocations: 2.094 kB / 0.7146 GB, free: 18.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=287): time 0.1206/2.419, allocations: 27.73 MB / 0.7417 GB, free: 7.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00493/2.424, allocations: 6.308 MB / 0.7478 GB, free: 1.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01582/2.44, allocations: 5.851 MB / 0.7535 GB, free: 15.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001054/2.441, allocations: 72.53 kB / 0.7536 GB, free: 15.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006393/2.448, allocations: 5.053 MB / 0.7585 GB, free: 10.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002595/2.45, allocations: 1.188 MB / 0.7597 GB, free: 9.641 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/2.452, allocations: 195.1 kB / 0.7599 GB, free: 9.453 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009249/2.453, allocations: 0.7205 MB / 0.7606 GB, free: 8.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01154/2.464, allocations: 3.903 MB / 0.7644 GB, free: 5.559 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01758/2.482, allocations: 9.682 MB / 0.7739 GB, free: 9.941 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/2.498, allocations: 5.948 MB / 0.7797 GB, free: 4.785 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001974/2.498, allocations: 56 kB / 0.7797 GB, free: 4.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05226/2.55, allocations: 15.14 MB / 0.7945 GB, free: 7.941 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000286/2.551, allocations: 92 kB / 0.7946 GB, free: 7.852 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02836/2.579, allocations: 6.77 MB / 0.8012 GB, free: 2.316 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01604/2.595, allocations: 2.843 MB / 0.804 GB, free: 280 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3992/2.994, allocations: 2.359 MB / 0.8063 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/3.01, allocations: 11.41 MB / 0.8174 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01438/3.024, allocations: 0.8609 MB / 0.8183 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002503/3.027, allocations: 0.5888 MB / 0.8188 GB, free: 106.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 933 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.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 (1204): * Single equations (assignments): 1179 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 11 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.01086/3.038, allocations: 3.418 MB / 0.8222 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001835/3.039, allocations: 0.5858 MB / 0.8228 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02951/3.069, allocations: 7.591 MB / 0.8302 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02454/3.094, allocations: 6.746 MB / 0.8368 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.836e-05/3.094, allocations: 6 kB / 0.8368 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/3.094, allocations: 14.48 kB / 0.8368 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02056/3.114, allocations: 7.422 MB / 0.844 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.253e-05/3.114, allocations: 1.25 kB / 0.844 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006252/3.121, allocations: 0.5989 MB / 0.8446 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01678/3.138, allocations: 3.132 MB / 0.8477 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009633/3.139, allocations: 96.72 kB / 0.8478 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02193/3.161, allocations: 14.29 MB / 0.8617 GB, free: 97.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004608/3.165, allocations: 6.08 MB / 0.8677 GB, free: 91.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03318/3.198, allocations: 11.74 MB / 0.8791 GB, free: 87.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004278/3.203, allocations: 1.131 MB / 0.8802 GB, free: 86.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/3.205, allocations: 76.97 kB / 0.8803 GB, free: 86.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007251/3.212, allocations: 370.9 kB / 0.8807 GB, free: 86.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001424/3.214, allocations: 224 kB / 0.8809 GB, free: 86.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000399/3.214, allocations: 90.56 kB / 0.881 GB, free: 86.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01113/3.225, allocations: 4.089 MB / 0.8849 GB, free: 85.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.02e-07/3.226, allocations: 3 kB / 0.8849 GB, free: 85.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.014/3.24, allocations: 2.005 MB / 0.8869 GB, free: 85.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[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 (233): * Single equations (assignments): 216 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03502/3.275, allocations: 12.59 MB / 0.8992 GB, free: 78.35 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03034/3.305, allocations: 10.87 MB / 0.9098 GB, free: 69.08 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/3.305, allocations: 4 kB / 0.9098 GB, free: 69.08 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01646/3.322, allocations: 5.345 MB / 0.915 GB, free: 64.34 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007546/3.329, allocations: 0.8211 MB / 0.9158 GB, free: 63.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5409/3.87, allocations: 213.4 MB / 1.124 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01338/3.884, allocations: 5.403 MB / 1.13 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009756/3.893, allocations: 3.676 MB / 1.133 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of SimCode: time 1.222e-06/3.893, allocations: 0 / 1.133 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.545/12.44, allocations: 0.5438 GB / 1.677 GB, free: 46.21 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat does not exist to compare? outputFormat=mat