Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.049/1.049, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002636, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05424/0.05453, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2289/0.2835, allocations: 47.82 MB / 231.9 MB, free: 14.9 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.2838, allocations: 75.78 kB / 231.9 MB, free: 14.86 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438/4.722, allocations: 0.4887 GB / 0.7152 GB, free: 42.05 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.296e-06/4.722, allocations: 0 / 0.7152 GB, free: 42.05 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0003928/4.723, allocations: 109.3 kB / 0.7153 GB, free: 42.04 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2050 * Number of variables: 2050 Notification: Performance of Generate backend data structure: time 0.5319/5.255, allocations: 42.93 MB / 0.7572 GB, free: 40.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/5.255, allocations: 9.156 kB / 0.7572 GB, free: 40.41 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 10.91/16.16, allocations: 1.065 GB / 1.822 GB, free: 42.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06822/16.23, allocations: 18.49 MB / 1.84 GB, free: 28.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006733/16.23, allocations: 438.4 kB / 1.841 GB, free: 28.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01965/16.25, allocations: 0.5519 MB / 1.841 GB, free: 27.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.369/19.62, allocations: 342.7 MB / 2.176 GB, free: 34.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004666/19.62, allocations: 40.91 kB / 2.176 GB, free: 34.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01773/19.64, allocations: 257.3 kB / 2.176 GB, free: 34.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008122/19.65, allocations: 1.838 MB / 2.178 GB, free: 34.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.35/26, allocations: 0.6544 GB / 2.832 GB, free: 35.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.691/33.69, allocations: 0.9475 GB / 3.78 GB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.8045/34.5, allocations: 77.94 MB / 3.856 GB, free: 67.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7196/35.21, allocations: 82.93 MB / 3.937 GB, free: 61.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.434e-05/35.21, allocations: 59.19 kB / 3.937 GB, free: 61.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=189): time 6.011e-06/35.21, allocations: 0 / 3.937 GB, free: 61.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=207): time 1.856/37.07, allocations: 185.1 MB / 4.118 GB, free: 68.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/37.07, allocations: 152 kB / 4.118 GB, free: 68.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1164/37.19, allocations: 15.69 MB / 4.133 GB, free: 67.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003536/37.19, allocations: 56.81 kB / 4.134 GB, free: 67.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003486/37.19, allocations: 4.04 MB / 4.137 GB, free: 65.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004371/37.2, allocations: 0.819 MB / 4.138 GB, free: 65.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005269/37.2, allocations: 161.6 kB / 4.138 GB, free: 65.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0006402/37.21, allocations: 0.6419 MB / 4.139 GB, free: 64.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7516/37.96, allocations: 69.84 MB / 4.207 GB, free: 67.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5602/38.52, allocations: 74.85 MB / 4.28 GB, free: 52.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.6797/39.2, allocations: 57.12 MB / 4.336 GB, free: 60.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002047/39.2, allocations: 54.12 kB / 4.336 GB, free: 60.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=1028) (initialization): time 1.274/40.47, allocations: 131.4 MB / 4.464 GB, free: 56.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/40.47, allocations: 85.98 kB / 4.465 GB, free: 56.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000316/40.47, allocations: 175.5 kB / 4.465 GB, free: 56.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002971/40.47, allocations: 263 kB / 4.465 GB, free: 56.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2573/40.73, allocations: 29.5 MB / 4.494 GB, free: 30.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003648/40.73, allocations: 350.8 kB / 4.494 GB, free: 29.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.5516/41.28, allocations: 34.07 MB / 4.527 GB, free: 58.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006981/41.29, allocations: 1.321 MB / 4.529 GB, free: 58.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 809 * Number of states: 0 () * Number of discrete variables: 33 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1004): * Single equations (assignments): 1001 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01517/41.3, allocations: 2.599 MB / 4.531 GB, free: 58.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006253/41.31, allocations: 431.4 kB / 4.532 GB, free: 58.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1016/41.41, allocations: 10.86 MB / 4.542 GB, free: 58.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.028e-05/41.41, allocations: 24.88 kB / 4.542 GB, free: 58.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/41.41, allocations: 0 / 4.542 GB, free: 58.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.304e-05/41.41, allocations: 17 kB / 4.542 GB, free: 58.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1022/41.51, allocations: 35.87 MB / 4.577 GB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.462e-05/41.51, allocations: 17.75 kB / 4.577 GB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1839/41.7, allocations: 21.94 MB / 4.599 GB, free: 22.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.624e-05/41.7, allocations: 32 kB / 4.599 GB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003835/41.7, allocations: 0.6089 MB / 4.599 GB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.16e-05/41.7, allocations: 42.64 kB / 4.599 GB, free: 21.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.958e-05/41.7, allocations: 33.19 kB / 4.599 GB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.66/43.36, allocations: 159.4 MB / 4.755 GB, free: 58.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01425/43.38, allocations: 3.729 MB / 4.759 GB, free: 57.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006826/43.38, allocations: 66.64 kB / 4.759 GB, free: 57.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2958/43.68, allocations: 24.35 MB / 4.783 GB, free: 41.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005833/43.68, allocations: 188.5 kB / 4.783 GB, free: 41.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00342/43.68, allocations: 0.6639 MB / 4.783 GB, free: 40.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.1094/43.79, allocations: 13.2 MB / 4.796 GB, free: 27.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.655e-06/43.79, allocations: 0 / 4.796 GB, free: 27.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.02361/43.82, allocations: 2.589 MB / 4.799 GB, free: 25.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 85 * Number of states: 4 (p1.s,p1.v,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 (201): * Single equations (assignments): 198 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003152/43.82, allocations: 227.9 kB / 4.799 GB, free: 25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 1.396/45.22, allocations: 126.5 MB / 4.923 GB, free: 58.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.032e-05/45.22, allocations: 3.969 kB / 4.923 GB, free: 58.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.4555/45.67, allocations: 54.64 MB / 4.976 GB, free: 49.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007205/45.68, allocations: 457.9 kB / 4.976 GB, free: 49.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6398/46.32, allocations: 67.15 MB / 5.042 GB, free: 53.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009423/46.33, allocations: 4.075 MB / 5.046 GB, free: 52.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02716/46.35, allocations: 2.626 MB / 5.049 GB, free: 52.42 MB / 298.7 MB Notification: Performance of SimCode: time 1.423e-06/46.35, allocations: 1.312 kB / 5.049 GB, free: 52.42 MB / 298.7 MB Notification: Performance of Templates: time 0.9841/47.34, allocations: 278.1 MB / 5.32 GB, free: 3.555 MB / 314.7 MB make -j1 -f Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystemCalcHelperMain.o OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystemCalcHelperMain.cpp\nIn file included from OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystemCalcHelperMain.cpp:33:\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1323:35: error: non-constant-expression cannot be narrowed from type \'int\' to \'double\' in initializer list [-Wc++11-narrowing]\n double tmp9_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp11) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp13)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1323:35: note: insert an explicit cast to silence this issue\n double tmp9_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp11) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp13)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n static_cast( )\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1440:36: error: non-constant-expression cannot be narrowed from type \'int\' to \'double\' in initializer list [-Wc++11-narrowing]\n double tmp28_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp30) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp32)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1440:36: note: insert an explicit cast to silence this issue\n double tmp28_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp30) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp32)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n static_cast( )\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1573:36: error: non-constant-expression cannot be narrowed from type \'int\' to \'double\' in initializer list [-Wc++11-narrowing]\n double tmp47_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp49) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp51)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1573:36: note: insert an explicit cast to silence this issue\n double tmp47_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp49) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp51)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n static_cast( )\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1665:36: error: non-constant-expression cannot be narrowed from type \'int\' to \'double\' in initializer list [-Wc++11-narrowing]\n double tmp66_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp68) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp70)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.cpp:1665:36: note: insert an explicit cast to silence this issue\n double tmp66_data[]={0.0, 0.0, sgn(((_spring2_P_lineForce_P_lineShape_P_rxvisobj_(1) * tmp68) - (_spring2_P_lineForce_P_lineShape_P_rxvisobj_(2) * tmp70)))};\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n static_cast( )\n4 errors generated.\n: recipe for target \'OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystemCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystemCalcHelperMain.o] Error 1\n'