Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001588/0.001588, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001451/0.001451, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.432/1.432, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.SpringDamperSystem,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.|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,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.|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 47.92 kB / 379 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2387, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01368/0.2524, allocations: 12.06 MB / 444.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008149/0.2605, allocations: 4.25 MB / 448.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.2618, allocations: 83.56 kB / 448.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005019/0.2668, allocations: 2.807 MB / 451.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004306/0.2712, allocations: 1.988 MB / 453.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.2728, allocations: 0.8111 MB / 454.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006498/0.2793, allocations: 4.695 MB / 459.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.283, allocations: 2.941 MB / 462 MB, free: 9.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002425/0.2854, allocations: 1.705 MB / 463.7 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003764/0.2892, allocations: 2.527 MB / 466.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000911/0.2901, allocations: 352 kB / 466.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.2926, allocations: 1.295 MB / 467.9 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002242/0.2949, allocations: 2.142 MB / 470 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002663/0.2976, allocations: 2.412 MB / 472.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008093/0.3056, allocations: 7.498 MB / 480 MB, free: 7.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3056, allocations: 0 / 480 MB, free: 7.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3056, allocations: 0 / 480 MB, free: 7.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.3057, allocations: 4 kB / 480 MB, free: 7.164 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.009265/0.315, allocations: 5.288 MB / 485.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3151, allocations: 12.03 kB / 485.3 MB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0077/0.3228, allocations: 2.201 MB / 487.5 MB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004812/0.3276, allocations: 2.425 MB / 489.9 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.3278, allocations: 274.8 kB / 490.2 MB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008974/0.3287, allocations: 423.7 kB / 490.6 MB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02228/0.351, allocations: 12.27 MB / 0.491 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.3511, allocations: 47.58 kB / 0.4911 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004738/0.3516, allocations: 179.8 kB / 0.4913 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003231/0.3548, allocations: 2.162 MB / 0.4934 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02189/0.3767, allocations: 10.24 MB / 0.5034 GB, free: 2.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2734/0.6501, allocations: 44.04 MB / 0.5464 GB, free: 70.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.6602, allocations: 3.835 MB / 0.5501 GB, free: 69.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.6622, allocations: 1.631 MB / 0.5517 GB, free: 69.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01064/0.6729, allocations: 6.893 MB / 0.5585 GB, free: 67.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.6729, allocations: 59.95 kB / 0.5585 GB, free: 67.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.558e-06/0.6729, allocations: 112 / 0.5585 GB, free: 67.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03499/0.7079, allocations: 16.01 MB / 0.5741 GB, free: 56.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000934/0.7088, allocations: 1.591 MB / 0.5757 GB, free: 54.69 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004368/0.7132, allocations: 4.203 MB / 0.5798 GB, free: 50.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003473/0.7136, allocations: 51.98 kB / 0.5799 GB, free: 50.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.7149, allocations: 3.54 MB / 0.5833 GB, free: 47.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006287/0.7155, allocations: 0.846 MB / 0.5841 GB, free: 46.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001196/0.7167, allocations: 1.362 MB / 0.5855 GB, free: 44.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.589e-05/0.7168, allocations: 307.6 kB / 0.5858 GB, free: 44.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/0.7194, allocations: 2.282 MB / 0.588 GB, free: 42.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003843/0.7232, allocations: 6.416 MB / 0.5943 GB, free: 33.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007758/0.731, allocations: 9.357 MB / 0.6034 GB, free: 22.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/0.7311, allocations: 40 kB / 0.6034 GB, free: 22.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01998/0.7511, allocations: 10.18 MB / 0.6134 GB, free: 12.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.288e-05/0.7512, allocations: 71.98 kB / 0.6134 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009814/0.761, allocations: 3.893 MB / 0.6172 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009198/0.7702, allocations: 2.258 MB / 0.6194 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004873/0.775, allocations: 1.591 MB / 0.621 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008337/0.7834, allocations: 6.42 MB / 0.6273 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005257/0.7886, allocations: 431.5 kB / 0.6277 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/0.7898, allocations: 416.2 kB / 0.6281 GB, free: 13.15 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004599/0.7944, allocations: 2.216 MB / 0.6302 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/0.7955, allocations: 397.4 kB / 0.6306 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007449/0.8029, allocations: 3.305 MB / 0.6339 GB, free: 7.207 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005799/0.8087, allocations: 2.773 MB / 0.6366 GB, free: 4.414 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.962e-05/0.8088, allocations: 4.938 kB / 0.6366 GB, free: 4.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.139e-05/0.8088, allocations: 7.969 kB / 0.6366 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02143/0.8302, allocations: 10.19 MB / 0.6465 GB, free: 9.957 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.628e-05/0.8303, allocations: 12.56 kB / 0.6465 GB, free: 9.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.8319, allocations: 371.4 kB / 0.6469 GB, free: 9.582 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003023/0.8349, allocations: 0.9867 MB / 0.6479 GB, free: 8.582 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/0.8351, allocations: 60.05 kB / 0.6479 GB, free: 8.523 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005687/0.8408, allocations: 4.708 MB / 0.6525 GB, free: 3.59 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001217/0.842, allocations: 1.461 MB / 0.6539 GB, free: 2.004 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009984/0.852, allocations: 5.983 MB / 0.6598 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.8533, allocations: 381.2 kB / 0.6601 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004812/0.8538, allocations: 55.98 kB / 0.6602 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.8554, allocations: 156.7 kB / 0.6603 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.8557, allocations: 180.3 kB / 0.6605 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.8559, allocations: 73 kB / 0.6606 GB, free: 10.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004188/0.8601, allocations: 2.589 MB / 0.6631 GB, free: 8.387 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8601, allocations: 0 / 0.6631 GB, free: 8.387 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005626/0.8657, allocations: 1.148 MB / 0.6642 GB, free: 7.242 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0004952/0.8662, allocations: 214.1 kB / 0.6644 GB, free: 7.027 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01217/0.8784, allocations: 5.673 MB / 0.67 GB, free: 1.348 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.661e-05/0.8784, allocations: 0 / 0.67 GB, free: 1.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004302/0.8827, allocations: 1.987 MB / 0.6719 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002983/0.8857, allocations: 499.5 kB / 0.6724 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/0.9058, allocations: 11.35 MB / 0.6835 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00398/0.9098, allocations: 3.447 MB / 0.6868 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.9109, allocations: 323.4 kB / 0.6872 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of SimCode: time 8.42e-07/0.9109, allocations: 0 / 0.6872 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of Templates: time 0.3663/1.277, allocations: 142.1 MB / 0.8259 GB, free: 146.9 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -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.SpringDamperSystemCalcHelperMain.o OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemCalcHelperMain.cpp In file included from OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemCalcHelperMain.cpp:25: In file included from ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgLoopMain.cpp:24: ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:51: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:103: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:153: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:204: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:256: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:307: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:358: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:74:408: error: use of undeclared identifier 'body1_P_Q_start_' tmp155 = std::atan2(((_system->_body1_P_Q_(2) * body1_P_Q_start_(1)) + (((_system->_body1_P_Q_(4) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(2)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:51: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:103: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:153: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:204: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:256: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:307: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:358: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:76:408: error: use of undeclared identifier 'body1_P_Q_start_' tmp156 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(2)) + (((_system->_body1_P_Q_(1) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(2) * body1_P_Q_start_(4))) - (_system->_body1_P_Q_(3) * body1_P_Q_start_(1)))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:78:51: error: use of undeclared identifier 'body1_P_Q_start_' tmp157 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(2)) + (((-_system->_body1_P_Q_(2)) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(4))))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:78:102: error: use of undeclared identifier 'body1_P_Q_start_' tmp157 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(2)) + (((-_system->_body1_P_Q_(2)) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(4))))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_P_Q_start_(4)))))); ^ ./OMCppModelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystemAlgloop785.cpp:78:156: error: use of undeclared identifier 'body1_P_Q_start_' tmp157 = std::atan2(((_system->_body1_P_Q_(4) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(2)) + (((-_system->_body1_P_Q_(2)) * body1_P_Q_start_(3)) - (_system->_body1_P_Q_(1) * body1_P_Q_start_(4))))), ((_system->_body1_P_Q_(1) * body1_P_Q_start_(1)) + ((_system->_body1_P_Q_(2) * body1_P_Q_start_(2)) + ((_system->_body1_P_Q_(3) * body1_P_Q_start_(3)) + (_system->_body1_P_Q_(4) * body1_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.SpringDamperSystemCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.990777956089005] 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]', 'p2.s', 'p2.v'] 1.2863619411364198 1.295410838 0.987449523 Calling exit ...