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.FreeBodies.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.FreeBodies,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.208/2.208, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.903e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3436, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1767/0.5203, allocations: 98.6 MB / 456.7 MB, free: 12.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5207, allocations: 79.95 kB / 456.8 MB, free: 12.04 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6721:35-6721:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6722:13-6722:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6743:35-6743:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6744:13-6744:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6765:35-6765:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6766:13-6766:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6793:35-6793:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6794:13-6794:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6805:35-6805:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6806:13-6806:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.8346/1.355, allocations: 139.1 MB / 0.5819 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.355, allocations: 4 kB / 0.5819 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006368/1.356, allocations: 163.9 kB / 0.5821 GB, free: 0.7305 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.06431/1.42, allocations: 8.667 MB / 0.5906 GB, free: 7.988 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/1.42, allocations: 12.03 kB / 0.5906 GB, free: 7.977 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06045/1.481, allocations: 7.744 MB / 0.5981 GB, free: 216 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04428/1.525, allocations: 10.95 MB / 0.6088 GB, free: 5.184 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005849/1.526, allocations: 247.9 kB / 0.6091 GB, free: 4.941 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003963/1.53, allocations: 451.8 kB / 0.6095 GB, free: 4.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03038/1.56, allocations: 10.04 MB / 0.6193 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4264/1.987, allocations: 15.13 MB / 0.6341 GB, free: 63.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005169/1.987, allocations: 106.3 kB / 0.6342 GB, free: 63.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002048/1.989, allocations: 47.28 kB / 0.6342 GB, free: 63.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003916/1.993, allocations: 1.601 MB / 0.6358 GB, free: 63.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1523/2.146, allocations: 77.6 MB / 0.7116 GB, free: 18.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/2.156, allocations: 4.359 MB / 0.7158 GB, free: 17.52 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006022/2.162, allocations: 3.045 MB / 0.7188 GB, free: 16.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003447/2.162, allocations: 49.92 kB / 0.7188 GB, free: 16.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.609e-05/2.162, allocations: 62.31 kB / 0.7189 GB, free: 16.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 6.682e-06/2.162, allocations: 0 / 0.7189 GB, free: 16.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=293): time 0.08576/2.248, allocations: 21.6 MB / 0.74 GB, free: 8.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/2.248, allocations: 241.9 kB / 0.7402 GB, free: 7.812 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0131/2.261, allocations: 5.136 MB / 0.7452 GB, free: 5.949 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009193/2.262, allocations: 25.7 kB / 0.7453 GB, free: 5.918 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004426/2.267, allocations: 5.135 MB / 0.7503 GB, free: 1.859 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002181/2.269, allocations: 1.175 MB / 0.7514 GB, free: 1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001556/2.271, allocations: 0 / 0.7514 GB, free: 1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009576/2.272, allocations: 0.7308 MB / 0.7521 GB, free: 0.5078 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01441/2.286, allocations: 3.894 MB / 0.7559 GB, free: 0 / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02139/2.308, allocations: 9.569 MB / 0.7653 GB, free: 6.691 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01923/2.327, allocations: 5.813 MB / 0.771 GB, free: 4.508 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002962/2.327, allocations: 59.03 kB / 0.771 GB, free: 4.508 MB / 474.7 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.07055/2.398, allocations: 14.97 MB / 0.7856 GB, free: 11.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001934/2.398, allocations: 96.19 kB / 0.7857 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03561/2.434, allocations: 7.495 MB / 0.793 GB, free: 5.918 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03018/2.464, allocations: 3.846 MB / 0.7968 GB, free: 3.352 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01547/2.479, allocations: 2.358 MB / 0.7991 GB, free: 1.324 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02593/2.505, allocations: 13.12 MB / 0.8119 GB, free: 5.074 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01446/2.52, allocations: 0.6802 MB / 0.8126 GB, free: 4.617 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002851/2.523, allocations: 0.6093 MB / 0.8132 GB, free: 4.031 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1225): * Single equations (assignments): 1200 * Array equations: 11 * 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 {(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: 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 prepare postOptimizeDAE: time 0.004122/2.527, allocations: 0.6476 MB / 0.8138 GB, free: 3.387 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3949/2.922, allocations: 7.831 MB / 0.8215 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002231/2.924, allocations: 0.5523 MB / 0.822 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02596/2.95, allocations: 7.314 MB / 0.8291 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02266/2.973, allocations: 6.556 MB / 0.8355 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.945e-05/2.973, allocations: 10.31 kB / 0.8356 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001115/2.973, allocations: 14.33 kB / 0.8356 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0327/3.006, allocations: 11 MB / 0.8463 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.774e-05/3.006, allocations: 3.953 kB / 0.8463 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006412/3.012, allocations: 0.6104 MB / 0.8469 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01657/3.029, allocations: 3.069 MB / 0.8499 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001003/3.03, allocations: 62.12 kB / 0.85 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02174/3.052, allocations: 13.75 MB / 0.8634 GB, free: 97.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004749/3.057, allocations: 5.785 MB / 0.869 GB, free: 92.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.033/3.09, allocations: 11.52 MB / 0.8803 GB, free: 91.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002164/3.092, allocations: 0.5975 MB / 0.8809 GB, free: 91.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002473/3.094, allocations: 34.7 kB / 0.8809 GB, free: 91.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007236/3.102, allocations: 335.2 kB / 0.8812 GB, free: 91.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001443/3.103, allocations: 211.9 kB / 0.8814 GB, free: 91.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005749/3.104, allocations: 93.7 kB / 0.8815 GB, free: 91.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009608/3.113, allocations: 3.449 MB / 0.8849 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.22e-07/3.113, allocations: 0 / 0.8849 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01387/3.127, allocations: 1.883 MB / 0.8867 GB, free: 91.01 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET140489286992267.x[3],$STATESET140489286992267.x[2],$STATESET140489286992267.x[1],$STATESET140489286992266.x[3],$STATESET140489286992266.x[2],$STATESET140489286992266.x[1],$STATESET140489286992265.x[3],$STATESET140489286992265.x[2],$STATESET140489286992265.x[1],$STATESET140489286992264.x[3],$STATESET140489286992264.x[2],$STATESET140489286992264.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 222 * 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.03404/3.161, allocations: 12.33 MB / 0.8988 GB, free: 86.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02804/3.189, allocations: 10.72 MB / 0.9092 GB, free: 82.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/3.19, allocations: 1.312 kB / 0.9092 GB, free: 82.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01622/3.206, allocations: 5.231 MB / 0.9144 GB, free: 79.11 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007034/3.213, allocations: 0.7041 MB / 0.915 GB, free: 78.54 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0613/3.274, allocations: 19.5 MB / 0.9341 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01347/3.288, allocations: 5.403 MB / 0.9394 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008992/3.297, allocations: 3.652 MB / 0.9429 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of SimCode: time 2.936e-06/3.297, allocations: 0 / 0.9429 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.881/11.18, allocations: 0.5423 GB / 1.485 GB, free: 106.1 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat does not exist to compare? outputFormat=mat