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.001633/0.001633, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001931/0.001931, allocations: 214.2 kB / 24.48 MB, free: 3.84 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.501/1.501, allocations: 230.6 MB / 258.2 MB, free: 7.801 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.002129/0.002129, allocations: 51.92 kB / 379 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2895, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01409/0.3036, allocations: 10.47 MB / 442.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009342/0.3129, allocations: 4.017 MB / 446.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.3144, allocations: 83.56 kB / 446.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005547/0.3199, allocations: 2.686 MB / 449.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00536/0.3253, allocations: 2 MB / 451.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002068/0.3274, allocations: 0.8033 MB / 452.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006805/0.3342, allocations: 4.682 MB / 457.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004051/0.3382, allocations: 2.927 MB / 460 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002869/0.3411, allocations: 1.713 MB / 461.7 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003847/0.3449, allocations: 2.379 MB / 464.1 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008014/0.3457, allocations: 356 kB / 464.4 MB, free: 6.473 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002374/0.3481, allocations: 1.151 MB / 465.6 MB, free: 5.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00217/0.3503, allocations: 2.154 MB / 467.8 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002381/0.3527, allocations: 1.798 MB / 469.5 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009879/0.3625, allocations: 7.524 MB / 477.1 MB, free: 9.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3625, allocations: 0 / 477.1 MB, free: 9.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3625, allocations: 0 / 477.1 MB, free: 9.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002351/0.3628, allocations: 4 kB / 477.1 MB, free: 9.793 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.01156/0.3743, allocations: 5.292 MB / 482.4 MB, free: 4.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3744, allocations: 8.031 kB / 482.4 MB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008326/0.3827, allocations: 2.209 MB / 484.6 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005899/0.3886, allocations: 2.433 MB / 487 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.3889, allocations: 274.8 kB / 487.3 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.3899, allocations: 431.6 kB / 487.7 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02422/0.4141, allocations: 12.34 MB / 0.4883 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001377/0.4143, allocations: 59.56 kB / 0.4884 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004534/0.4147, allocations: 171.8 kB / 0.4886 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003488/0.4182, allocations: 2.162 MB / 0.4907 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02448/0.4427, allocations: 10.22 MB / 0.5006 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3149/0.7576, allocations: 41.42 MB / 0.5411 GB, free: 72.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.7691, allocations: 3.821 MB / 0.5448 GB, free: 71.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002105/0.7712, allocations: 1.633 MB / 0.5464 GB, free: 71.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/0.7828, allocations: 6.479 MB / 0.5528 GB, free: 69.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.7829, allocations: 58.31 kB / 0.5528 GB, free: 69.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.691e-06/0.7829, allocations: 0 / 0.5528 GB, free: 69.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03768/0.8206, allocations: 16 MB / 0.5684 GB, free: 59.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008995/0.8215, allocations: 1.569 MB / 0.57 GB, free: 57.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.8254, allocations: 3.981 MB / 0.5739 GB, free: 53.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.8256, allocations: 53.8 kB / 0.5739 GB, free: 53.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.8268, allocations: 3.57 MB / 0.5774 GB, free: 50.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004907/0.8273, allocations: 0.8464 MB / 0.5782 GB, free: 49.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001218/0.8286, allocations: 1.37 MB / 0.5796 GB, free: 48.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.66e-05/0.8286, allocations: 309 kB / 0.5798 GB, free: 47.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002729/0.8313, allocations: 2.285 MB / 0.5821 GB, free: 45.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004011/0.8353, allocations: 6.414 MB / 0.5883 GB, free: 37.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007687/0.843, allocations: 9.351 MB / 0.5975 GB, free: 26.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.747e-05/0.8431, allocations: 40 kB / 0.5975 GB, free: 25.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02755/0.8707, allocations: 10.14 MB / 0.6074 GB, free: 15.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.807e-05/0.8707, allocations: 75.97 kB / 0.6075 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01556/0.8863, allocations: 3.885 MB / 0.6113 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01509/0.9014, allocations: 2.257 MB / 0.6135 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007755/0.9092, allocations: 1.591 MB / 0.615 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008337/0.9175, allocations: 6.318 MB / 0.6212 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005522/0.923, allocations: 435.4 kB / 0.6216 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009976/0.924, allocations: 420 kB / 0.622 GB, free: 0.6367 MB / 446.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.003998/0.928, allocations: 2.213 MB / 0.6242 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007826/0.9288, allocations: 358.7 kB / 0.6245 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007036/0.9358, allocations: 3.27 MB / 0.6277 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005887/0.9417, allocations: 2.761 MB / 0.6304 GB, free: 7.988 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.9417, allocations: 8 kB / 0.6304 GB, free: 7.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.9418, allocations: 15.89 kB / 0.6304 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/0.9617, allocations: 9.003 MB / 0.6392 GB, free: 14.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.598e-05/0.9617, allocations: 12.94 kB / 0.6392 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/0.9633, allocations: 379.4 kB / 0.6396 GB, free: 14.35 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003173/0.9665, allocations: 0.9864 MB / 0.6406 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002265/0.9667, allocations: 60.05 kB / 0.6406 GB, free: 13.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005803/0.9725, allocations: 4.636 MB / 0.6452 GB, free: 8.457 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001197/0.9737, allocations: 1.446 MB / 0.6466 GB, free: 6.902 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0108/0.9845, allocations: 5.939 MB / 0.6524 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.9858, allocations: 337.4 kB / 0.6527 GB, free: 440 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004481/0.9863, allocations: 55.98 kB / 0.6527 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.988, allocations: 155.8 kB / 0.6529 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003569/0.9883, allocations: 180.3 kB / 0.6531 GB, free: 48 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/0.9885, allocations: 79.97 kB / 0.6531 GB, free: 15.97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003798/0.9923, allocations: 2.266 MB / 0.6554 GB, free: 13.72 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9923, allocations: 3.938 kB / 0.6554 GB, free: 13.71 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005867/0.9982, allocations: 1.136 MB / 0.6565 GB, free: 12.58 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.0005482/0.9987, allocations: 206.7 kB / 0.6567 GB, free: 12.37 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01113/1.01, allocations: 5.681 MB / 0.6622 GB, free: 6.684 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.92e-05/1.01, allocations: 0 / 0.6622 GB, free: 6.684 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004353/1.014, allocations: 1.975 MB / 0.6641 GB, free: 4.68 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/1.017, allocations: 430.5 kB / 0.6646 GB, free: 4.262 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02176/1.039, allocations: 11.32 MB / 0.6756 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004566/1.044, allocations: 2.919 MB / 0.6785 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.045, allocations: 315.3 kB / 0.6788 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of SimCode: time 1.112e-06/1.045, allocations: 0 / 0.6788 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of Templates: time 0.4212/1.466, allocations: 141.9 MB / 0.8173 GB, free: 153.2 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 -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.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_' tmp128 = 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_' tmp128 = 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_' tmp128 = 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_' tmp128 = 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_' tmp128 = 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_' tmp128 = 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_' tmp128 = 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_' tmp128 = 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_' tmp129 = 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_' tmp129 = 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_' tmp129 = 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_' tmp129 = 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_' tmp129 = 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_' tmp129 = 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_' tmp129 = 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_' tmp129 = 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_' tmp130 = 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_' tmp130 = 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_' tmp130 = 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: 5.366097497288138] 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.4766737879253924 1.4842107 1.11929185 Calling exit ...