Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001947/0.001947, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 230.6 MB / 258.2 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 51.91 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2383, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.009274/0.2475, allocations: 6.176 MB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006667/0.2542, allocations: 2.94 MB / 441.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.2552, allocations: 35.88 kB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.2571, allocations: 0.6691 MB / 442.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003707/0.2608, allocations: 1.394 MB / 443.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.2621, allocations: 0.503 MB / 444.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004754/0.2669, allocations: 3.202 MB / 447.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.268, allocations: 494.3 kB / 447.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001541/0.2695, allocations: 0.7939 MB / 448.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00231/0.2718, allocations: 1.32 MB / 449.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005829/0.2724, allocations: 128 kB / 450 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002018/0.2744, allocations: 0.8423 MB / 450.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001577/0.276, allocations: 1.09 MB / 451.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001695/0.2777, allocations: 0.8768 MB / 452.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005785/0.2835, allocations: 4.016 MB / 456.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2835, allocations: 4 kB / 456.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2835, allocations: 4 kB / 456.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001752/0.2837, allocations: 0 / 456.8 MB, free: 14.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.008268/0.2919, allocations: 3.176 MB / 460 MB, free: 10.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.292, allocations: 12.03 kB / 460 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009108/0.3011, allocations: 2.019 MB / 462 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/0.305, allocations: 1.564 MB / 463.6 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.3052, allocations: 118.6 kB / 463.7 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.3063, allocations: 295.5 kB / 464 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.3235, allocations: 8.223 MB / 472.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.87e-05/0.3236, allocations: 35.7 kB / 472.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002952/0.3239, allocations: 75.89 kB / 472.3 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002487/0.3264, allocations: 1.405 MB / 473.7 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01976/0.3461, allocations: 9.557 MB / 483.3 MB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04/0.3861, allocations: 29.13 MB / 0.5004 GB, free: 5.047 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.3988, allocations: 3.88 MB / 0.5042 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003497/0.4022, allocations: 2.086 MB / 0.5062 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-05/0.4023, allocations: 8 kB / 0.5062 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.4024, allocations: 50.5 kB / 0.5063 GB, free: 14.95 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 4.548e-06/0.4024, allocations: 0 / 0.5063 GB, free: 14.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.05008/0.4525, allocations: 17.86 MB / 0.5237 GB, free: 12.97 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00289/0.4554, allocations: 2.994 MB / 0.5267 GB, free: 9.715 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004447/0.4598, allocations: 2.834 MB / 0.5294 GB, free: 6.855 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000748/0.4606, allocations: 49.62 kB / 0.5295 GB, free: 6.801 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00198/0.4625, allocations: 2.174 MB / 0.5316 GB, free: 4.602 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001141/0.4637, allocations: 0.5932 MB / 0.5322 GB, free: 4.004 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001761/0.4654, allocations: 1.02 MB / 0.5332 GB, free: 2.973 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.4656, allocations: 309.2 kB / 0.5335 GB, free: 2.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004464/0.4701, allocations: 2.625 MB / 0.536 GB, free: 36 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2222/0.6923, allocations: 5.584 MB / 0.5415 GB, free: 97.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009107/0.7014, allocations: 8.625 MB / 0.5499 GB, free: 91.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000149/0.7015, allocations: 28.75 kB / 0.5499 GB, free: 91.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.02983/0.7314, allocations: 11.91 MB / 0.5616 GB, free: 85.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.993e-05/0.7314, allocations: 48.19 kB / 0.5616 GB, free: 85.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02126/0.7527, allocations: 7.145 MB / 0.5686 GB, free: 78.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03138/0.7841, allocations: 4.725 MB / 0.5732 GB, free: 73.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006441/0.7905, allocations: 1.244 MB / 0.5744 GB, free: 72.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02252/0.813, allocations: 11.95 MB / 0.5861 GB, free: 59.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007765/0.8208, allocations: 0.5838 MB / 0.5866 GB, free: 59.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00133/0.8221, allocations: 321.9 kB / 0.587 GB, free: 58.85 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (592): * Single equations (assignments): 577 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003929/0.8261, allocations: 1.409 MB / 0.5883 GB, free: 57.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.8271, allocations: 240.5 kB / 0.5886 GB, free: 57.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.8281, allocations: 400.7 kB / 0.5889 GB, free: 57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01153/0.8396, allocations: 4.989 MB / 0.5938 GB, free: 51.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/0.8397, allocations: 4 kB / 0.5938 GB, free: 51.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.407e-05/0.8397, allocations: 19.84 kB / 0.5938 GB, free: 51.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00757/0.8473, allocations: 4.573 MB / 0.5983 GB, free: 47.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/0.8473, allocations: 0 / 0.5983 GB, free: 47.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001807/0.8491, allocations: 375.3 kB / 0.5987 GB, free: 47.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008077/0.8572, allocations: 2.386 MB / 0.601 GB, free: 44.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004719/0.8576, allocations: 47.95 kB / 0.601 GB, free: 44.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007252/0.8649, allocations: 8.917 MB / 0.6097 GB, free: 35.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001334/0.8662, allocations: 2.811 MB / 0.6125 GB, free: 32.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01485/0.8811, allocations: 8.747 MB / 0.621 GB, free: 23.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007128/0.8818, allocations: 235.7 kB / 0.6213 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000583/0.8824, allocations: 31.98 kB / 0.6213 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.8845, allocations: 322.9 kB / 0.6216 GB, free: 23.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.8848, allocations: 107.8 kB / 0.6217 GB, free: 22.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/0.885, allocations: 55.89 kB / 0.6217 GB, free: 22.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001961/0.887, allocations: 1.64 MB / 0.6234 GB, free: 21.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.887, allocations: 0 / 0.6234 GB, free: 21.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003902/0.8909, allocations: 0.9849 MB / 0.6243 GB, free: 20.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004144/0.8913, allocations: 171.5 kB / 0.6245 GB, free: 20.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01485/0.9061, allocations: 6.898 MB / 0.6312 GB, free: 13.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.9061, allocations: 0 / 0.6312 GB, free: 13.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008536/0.9147, allocations: 3.28 MB / 0.6344 GB, free: 9.844 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.9178, allocations: 269.1 kB / 0.6347 GB, free: 9.582 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/0.9341, allocations: 8.48 MB / 0.643 GB, free: 1.062 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00287/0.937, allocations: 1.731 MB / 0.6446 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/0.939, allocations: 231.3 kB / 0.6449 GB, free: 15.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.939, allocations: 0 / 0.6449 GB, free: 15.07 MB / 462.1 MB Notification: Performance of Templates: time 0.3719/1.311, allocations: 145.7 MB / 0.7871 GB, free: 146.2 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile [Timeout 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DOMC_BUILD -DUSE_THREAD -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityCalcHelperMain.o OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityCalcHelperMain.cpp In file included from OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityCalcHelperMain.cpp:25: In file included from ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgLoopMain.cpp:39: ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:51: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:103: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:153: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:204: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:256: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:307: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:358: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:74:408: error: use of undeclared identifier 'body2_P_Q_start_' tmp138 = std::atan2(((_system->_body2_P_Q_(2) * body2_P_Q_start_(1)) + (((_system->_body2_P_Q_(4) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(2)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:51: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:103: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:153: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:204: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:256: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:307: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:358: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:76:408: error: use of undeclared identifier 'body2_P_Q_start_' tmp139 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(2)) + (((_system->_body2_P_Q_(1) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(2) * body2_P_Q_start_(4))) - (_system->_body2_P_Q_(3) * body2_P_Q_start_(1)))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:78:51: error: use of undeclared identifier 'body2_P_Q_start_' tmp140 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(2)) + (((-_system->_body2_P_Q_(2)) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(4))))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:78:102: error: use of undeclared identifier 'body2_P_Q_start_' tmp140 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(2)) + (((-_system->_body2_P_Q_(2)) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(4))))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityAlgloop538.cpp:78:156: error: use of undeclared identifier 'body2_P_Q_start_' tmp140 = std::atan2(((_system->_body2_P_Q_(4) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(2)) + (((-_system->_body2_P_Q_(2)) * body2_P_Q_start_(3)) - (_system->_body2_P_Q_(1) * body2_P_Q_start_(4))))), ((_system->_body2_P_Q_(1) * body2_P_Q_start_(1)) + ((_system->_body2_P_Q_(2) * body2_P_Q_start_(2)) + ((_system->_body2_P_Q_(3) * body2_P_Q_start_(3)) + (_system->_body2_P_Q_(4) * body2_P_Q_start_(4)))))); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [: OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 5.310494093224406] Failed to read output from testmodel.py, exit status != 0: ['time', 'body1.frame_a.r_0[1]', 'body1.frame_a.r_0[2]', 'body1.frame_a.r_0[3]', 'body1.v_0[1]', 'body1.v_0[2]', 'body1.v_0[3]', 'body1.w_a[1]', 'body1.w_a[2]', 'body1.w_a[3]', 'body2.frame_a.r_0[1]', 'body2.frame_a.r_0[2]', 'body2.frame_a.r_0[3]', 'body2.v_0[1]', 'body2.v_0[2]', 'body2.v_0[3]', 'body2.w_a[1]', 'body2.w_a[2]', 'body2.w_a[3]'] 1.3207110175862908 1.329782009 1.043841883 Calling exit ...