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.FreeBodiesEnforceStatesFalse.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.FreeBodiesEnforceStatesFalse,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FreeBodiesEnforceStatesFalse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006066/0.0006068, allocations: 12 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3504, allocations: 48.7 MB / 331.4 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.5177, allocations: 92.68 MB / 424 MB, free: 1.594 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.518, allocations: 75.95 kB / 424.1 MB, free: 1.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8213/1.339, allocations: 142.3 MB / 0.5531 GB, free: 42.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.339, allocations: 0 / 0.5531 GB, free: 42.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006729/1.34, allocations: 163.9 kB / 0.5533 GB, free: 42.25 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.08304/1.423, allocations: 9.282 MB / 0.5624 GB, free: 32.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/1.423, allocations: 8.031 kB / 0.5624 GB, free: 32.88 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007261/1.431, allocations: 1.3 MB / 0.5636 GB, free: 31.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0583/1.489, allocations: 7.693 MB / 0.5712 GB, free: 23.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04414/1.533, allocations: 10.95 MB / 0.5818 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009911/1.534, allocations: 0.5577 MB / 0.5824 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00437/1.538, allocations: 0.7652 MB / 0.5831 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0625/1.601, allocations: 17.61 MB / 0.6003 GB, free: 8.355 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007281/1.602, allocations: 107 kB / 0.6004 GB, free: 8.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004137/1.606, allocations: 367.8 kB / 0.6008 GB, free: 7.891 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005616/1.612, allocations: 1.6 MB / 0.6024 GB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0636/1.675, allocations: 14.3 MB / 0.6163 GB, free: 7.961 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4608/2.136, allocations: 79.05 MB / 0.6935 GB, free: 24.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03415/2.17, allocations: 6.959 MB / 0.7003 GB, free: 24.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03445/2.205, allocations: 14.75 MB / 0.7147 GB, free: 18.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/2.205, allocations: 65.56 kB / 0.7148 GB, free: 18.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=259): time 6.672e-06/2.205, allocations: 0 / 0.7148 GB, free: 18.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=287): time 0.1217/2.327, allocations: 27.79 MB / 0.7419 GB, free: 7.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0049/2.332, allocations: 6.308 MB / 0.7481 GB, free: 1.551 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01555/2.347, allocations: 5.858 MB / 0.7538 GB, free: 15.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009685/2.348, allocations: 71.38 kB / 0.7539 GB, free: 15.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005993/2.354, allocations: 5.052 MB / 0.7588 GB, free: 11.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002617/2.357, allocations: 1.185 MB / 0.76 GB, free: 10.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001564/2.358, allocations: 190.8 kB / 0.7601 GB, free: 9.934 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000936/2.359, allocations: 0.7204 MB / 0.7608 GB, free: 9.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01147/2.371, allocations: 3.924 MB / 0.7647 GB, free: 6.016 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01748/2.388, allocations: 9.711 MB / 0.7742 GB, free: 10.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01646/2.405, allocations: 5.981 MB / 0.78 GB, free: 5.184 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002524/2.405, allocations: 60 kB / 0.7801 GB, free: 5.125 MB / 458.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05104/2.456, allocations: 15.17 MB / 0.7949 GB, free: 8.293 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001942/2.457, allocations: 96.22 kB / 0.795 GB, free: 8.199 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02485/2.481, allocations: 6.811 MB / 0.8016 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01598/2.497, allocations: 2.838 MB / 0.8044 GB, free: 0.582 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3483/2.846, allocations: 2.367 MB / 0.8067 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/2.862, allocations: 11.4 MB / 0.8178 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01509/2.877, allocations: 0.8606 MB / 0.8187 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002769/2.88, allocations: 0.5893 MB / 0.8192 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.01121/2.891, allocations: 3.415 MB / 0.8226 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001888/2.893, allocations: 0.5828 MB / 0.8231 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.029/2.922, allocations: 7.605 MB / 0.8306 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02777/2.95, allocations: 6.77 MB / 0.8372 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.729e-05/2.95, allocations: 7.469 kB / 0.8372 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001256/2.95, allocations: 13.05 kB / 0.8372 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02684/2.977, allocations: 7.474 MB / 0.8445 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.495e-05/2.977, allocations: 6.938 kB / 0.8445 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00846/2.985, allocations: 0.5936 MB / 0.8451 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02288/3.008, allocations: 3.136 MB / 0.8481 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001155/3.009, allocations: 96.83 kB / 0.8482 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02759/3.037, allocations: 14.34 MB / 0.8622 GB, free: 96.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004973/3.042, allocations: 6.085 MB / 0.8682 GB, free: 91.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03476/3.077, allocations: 11.76 MB / 0.8797 GB, free: 87 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00443/3.081, allocations: 1.135 MB / 0.8808 GB, free: 86.59 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002336/3.084, allocations: 83.81 kB / 0.8809 GB, free: 86.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007385/3.091, allocations: 377.3 kB / 0.8812 GB, free: 86.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001535/3.093, allocations: 219.7 kB / 0.8814 GB, free: 86.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004754/3.093, allocations: 85.78 kB / 0.8815 GB, free: 86.47 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01188/3.105, allocations: 4.094 MB / 0.8855 GB, free: 85.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.62e-07/3.105, allocations: 0 / 0.8855 GB, free: 85.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01407/3.119, allocations: 2.01 MB / 0.8875 GB, free: 84.94 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.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.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.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.frame_a.r_0[1],bodyBox.body.frame_a.r_0[2],bodyBox.body.frame_a.r_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_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.03465/3.154, allocations: 12.61 MB / 0.8998 GB, free: 78.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02847/3.183, allocations: 10.91 MB / 0.9104 GB, free: 69.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/3.183, allocations: 0 / 0.9104 GB, free: 69.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01612/3.199, allocations: 5.396 MB / 0.9157 GB, free: 64.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007146/3.206, allocations: 0.8224 MB / 0.9165 GB, free: 63.84 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1845:5-1847:74:writable] Warning: Variable pointMass.v_0[3] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1845:5-1847:74:writable] Warning: Variable pointMass.v_0[2] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1845:5-1847:74:writable] Warning: Variable pointMass.v_0[1] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1842:5-1844:74:writable] Warning: Variable pointMass.r_0[3] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1842:5-1844:74:writable] Warning: Variable pointMass.r_0[2] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:1842:5-1844:74:writable] Warning: Variable pointMass.r_0[1] has attribute stateSelect=StateSelect.never, but was selected as a state Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5377/3.744, allocations: 213.5 MB / 1.125 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/3.756, allocations: 5.404 MB / 1.13 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009077/3.766, allocations: 3.684 MB / 1.134 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.002e-06/3.766, allocations: 0 / 1.134 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.554/12.32, allocations: 0.5435 GB / 1.677 GB, free: 46.37 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse_res.mat does not exist to compare? outputFormat=mat