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.001745/0.001745, allocations: 107.6 kB / 21.19 MB, free: 0.6758 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.002021/0.002021, allocations: 215.6 kB / 24.48 MB, free: 3.977 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.489/1.489, allocations: 230.6 MB / 258.2 MB, free: 7.82 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.001528/0.001528, allocations: 51.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2334, allocations: 53.35 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01307/0.2465, allocations: 10.47 MB / 442.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008934/0.2554, allocations: 4.009 MB / 446.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.2569, allocations: 83.56 kB / 446.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005295/0.2622, allocations: 2.682 MB / 449.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005115/0.2673, allocations: 2.011 MB / 451.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001787/0.2691, allocations: 0.8072 MB / 452.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006857/0.2759, allocations: 4.686 MB / 457.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004058/0.28, allocations: 2.941 MB / 460 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.2827, allocations: 1.713 MB / 461.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0038/0.2865, allocations: 2.519 MB / 464.3 MB, free: 6.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000967/0.2874, allocations: 352 kB / 464.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.2898, allocations: 1.178 MB / 465.8 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.292, allocations: 2.138 MB / 467.9 MB, free: 2.984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002462/0.2944, allocations: 1.806 MB / 469.7 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008742/0.3032, allocations: 7.523 MB / 477.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3032, allocations: 0 / 477.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3032, allocations: 0 / 477.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002401/0.3034, allocations: 0 / 477.2 MB, free: 9.617 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.01155/0.315, allocations: 5.305 MB / 482.5 MB, free: 4.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.315, allocations: 12.03 kB / 482.6 MB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008304/0.3233, allocations: 2.197 MB / 484.8 MB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005649/0.329, allocations: 2.437 MB / 487.2 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/0.3292, allocations: 274.9 kB / 487.5 MB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009847/0.3302, allocations: 431.6 kB / 487.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02299/0.3532, allocations: 12.34 MB / 0.4885 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.3533, allocations: 51.58 kB / 0.4885 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004418/0.3538, allocations: 171.8 kB / 0.4887 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00353/0.3573, allocations: 2.166 MB / 0.4908 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02222/0.3795, allocations: 10.22 MB / 0.5008 GB, free: 5.055 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.273/0.6525, allocations: 41.42 MB / 0.5413 GB, free: 72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.6632, allocations: 3.823 MB / 0.545 GB, free: 71.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/0.6651, allocations: 1.628 MB / 0.5466 GB, free: 71.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.6754, allocations: 6.482 MB / 0.5529 GB, free: 69.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.6755, allocations: 55.69 kB / 0.553 GB, free: 69.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.529e-06/0.6755, allocations: 0 / 0.553 GB, free: 69.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03561/0.7111, allocations: 16 MB / 0.5686 GB, free: 59.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009672/0.7121, allocations: 1.568 MB / 0.5701 GB, free: 57.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004159/0.7162, allocations: 3.988 MB / 0.574 GB, free: 53.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003806/0.7166, allocations: 61.3 kB / 0.5741 GB, free: 53.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.718, allocations: 3.568 MB / 0.5776 GB, free: 50.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008082/0.7188, allocations: 0.8435 MB / 0.5784 GB, free: 49.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/0.7202, allocations: 1.362 MB / 0.5797 GB, free: 48.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.926e-05/0.7202, allocations: 305.1 kB / 0.58 GB, free: 47.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002626/0.7228, allocations: 2.293 MB / 0.5822 GB, free: 45.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003932/0.7268, allocations: 6.414 MB / 0.5885 GB, free: 37.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007797/0.7346, allocations: 9.344 MB / 0.5976 GB, free: 26.01 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/0.7347, allocations: 40 kB / 0.5977 GB, free: 25.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01882/0.7535, allocations: 10.15 MB / 0.6076 GB, free: 15.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.937e-05/0.7536, allocations: 69.78 kB / 0.6076 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009621/0.7632, allocations: 3.889 MB / 0.6114 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008997/0.7722, allocations: 2.258 MB / 0.6137 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004738/0.7769, allocations: 1.587 MB / 0.6152 GB, free: 7.973 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006893/0.7838, allocations: 6.324 MB / 0.6214 GB, free: 1.438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004805/0.7886, allocations: 431.5 kB / 0.6218 GB, free: 1.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006834/0.7893, allocations: 416 kB / 0.6222 GB, free: 0.6094 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.003515/0.7928, allocations: 2.225 MB / 0.6244 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007726/0.7936, allocations: 357.6 kB / 0.6247 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00659/0.8002, allocations: 3.274 MB / 0.6279 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005499/0.8057, allocations: 2.769 MB / 0.6306 GB, free: 7.941 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/0.8057, allocations: 4 kB / 0.6306 GB, free: 7.938 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.459e-05/0.8057, allocations: 11.97 kB / 0.6306 GB, free: 7.926 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01891/0.8246, allocations: 9.003 MB / 0.6394 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.432e-05/0.8247, allocations: 12 kB / 0.6394 GB, free: 14.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.8264, allocations: 372.2 kB / 0.6398 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003047/0.8294, allocations: 0.9864 MB / 0.6407 GB, free: 13.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002317/0.8296, allocations: 55.98 kB / 0.6408 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005614/0.8353, allocations: 4.651 MB / 0.6453 GB, free: 8.414 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001186/0.8364, allocations: 1.445 MB / 0.6467 GB, free: 6.863 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00988/0.8463, allocations: 5.938 MB / 0.6525 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.8474, allocations: 337.5 kB / 0.6529 GB, free: 400 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004111/0.8478, allocations: 55.98 kB / 0.6529 GB, free: 344 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.8494, allocations: 151.8 kB / 0.6531 GB, free: 192 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/0.8497, allocations: 180.3 kB / 0.6532 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/0.8499, allocations: 76.91 kB / 0.6533 GB, free: 15.94 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003637/0.8535, allocations: 2.262 MB / 0.6555 GB, free: 13.69 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.8535, allocations: 4 kB / 0.6555 GB, free: 13.69 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005218/0.8587, allocations: 1.137 MB / 0.6566 GB, free: 12.55 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.0005405/0.8593, allocations: 218.4 kB / 0.6568 GB, free: 12.33 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01088/0.8702, allocations: 5.665 MB / 0.6624 GB, free: 6.664 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.86e-05/0.8702, allocations: 0 / 0.6624 GB, free: 6.664 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004153/0.8743, allocations: 1.977 MB / 0.6643 GB, free: 4.656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002793/0.8771, allocations: 454.6 kB / 0.6647 GB, free: 4.215 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/0.8965, allocations: 11.31 MB / 0.6758 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004006/0.9005, allocations: 2.919 MB / 0.6786 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.9016, allocations: 315.4 kB / 0.6789 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of SimCode: time 1.163e-06/0.9016, allocations: 3.938 kB / 0.6789 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of Templates: time 0.4011/1.303, allocations: 141.9 MB / 0.8175 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.212692210974637] 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.3116252970066853 1.3211009200000001 1.015313756 Calling exit ...