Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 1.818/1.818, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.117e-05, allocations: 8 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08428/0.08434, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3528/0.4372, allocations: 90.61 MB / 417.2 MB, free: 1.215 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.4375, allocations: 76.58 kB / 417.2 MB, free: 1.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3319/0.7694, allocations: 84.82 MB / 0.4903 GB, free: 3.234 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.792e-06/0.7695, allocations: 0 / 0.4903 GB, free: 3.234 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000215/0.7697, allocations: 87.92 kB / 0.4904 GB, free: 3.148 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.01159/0.7813, allocations: 3.893 MB / 0.4942 GB, free: 15.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.7814, allocations: 12.02 kB / 0.4942 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01445/0.7958, allocations: 2.439 MB / 0.4966 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01576/0.8116, allocations: 5.113 MB / 0.5016 GB, free: 7.551 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004143/0.8121, allocations: 324.5 kB / 0.5019 GB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001448/0.8136, allocations: 423.8 kB / 0.5023 GB, free: 6.816 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02765/0.8412, allocations: 10.35 MB / 0.5124 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003183/0.8416, allocations: 63.41 kB / 0.5124 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001643/0.8432, allocations: 215.8 kB / 0.5126 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.8466, allocations: 1.01 MB / 0.5136 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02485/0.8715, allocations: 7.958 MB / 0.5214 GB, free: 2.074 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2907/1.162, allocations: 47.44 MB / 0.5677 GB, free: 58.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00976/1.172, allocations: 3.02 MB / 0.5707 GB, free: 58.01 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/1.174, allocations: 0.9631 MB / 0.5716 GB, free: 57.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00963/1.184, allocations: 5.216 MB / 0.5767 GB, free: 55.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/1.184, allocations: 47.09 kB / 0.5768 GB, free: 55.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 6.086e-06/1.184, allocations: 0 / 0.5768 GB, free: 55.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=146): time 0.02681/1.211, allocations: 8.269 MB / 0.5848 GB, free: 52.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/1.211, allocations: 197.8 kB / 0.585 GB, free: 52.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006549/1.217, allocations: 3.538 MB / 0.5885 GB, free: 52.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002246/1.217, allocations: 44.2 kB / 0.5885 GB, free: 52.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/1.22, allocations: 3.094 MB / 0.5915 GB, free: 50.53 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006219/1.22, allocations: 0.5847 MB / 0.5921 GB, free: 50.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004673/1.221, allocations: 120.5 kB / 0.5922 GB, free: 50.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003709/1.221, allocations: 0.5592 MB / 0.5928 GB, free: 49.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003068/1.224, allocations: 1.516 MB / 0.5943 GB, free: 49.47 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005194/1.229, allocations: 5.318 MB / 0.5995 GB, free: 43.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005049/1.234, allocations: 2.843 MB / 0.6022 GB, free: 43.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.781e-05/1.235, allocations: 38.44 kB / 0.6023 GB, free: 43.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01429/1.249, allocations: 6.457 MB / 0.6086 GB, free: 41.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/1.249, allocations: 62.06 kB / 0.6086 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001472/1.249, allocations: 136.6 kB / 0.6088 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/1.249, allocations: 195.1 kB / 0.6089 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005922/1.255, allocations: 1.424 MB / 0.6103 GB, free: 40.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002225/1.256, allocations: 264.1 kB / 0.6106 GB, free: 40.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006059/1.262, allocations: 375.4 kB / 0.6109 GB, free: 40.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/1.263, allocations: 373.8 kB / 0.6113 GB, free: 40.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (746): * Single equations (assignments): 743 * 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.001126/1.264, allocations: 0.5674 MB / 0.6119 GB, free: 40.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006946/1.265, allocations: 347.6 kB / 0.6122 GB, free: 39.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002538/1.267, allocations: 1.219 MB / 0.6134 GB, free: 39.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.721e-05/1.267, allocations: 15.97 kB / 0.6134 GB, free: 39.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/1.267, allocations: 2.812 kB / 0.6134 GB, free: 39.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.855e-05/1.267, allocations: 13.53 kB / 0.6134 GB, free: 39.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/1.279, allocations: 5.524 MB / 0.6188 GB, free: 36.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/1.279, allocations: 20.75 kB / 0.6188 GB, free: 36.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/1.281, allocations: 263.1 kB / 0.6191 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.941e-05/1.281, allocations: 24.16 kB / 0.6191 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/1.281, allocations: 47.05 kB / 0.6191 GB, free: 36.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.458e-05/1.281, allocations: 29.08 kB / 0.6192 GB, free: 36.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.537e-05/1.281, allocations: 26.78 kB / 0.6192 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004394/1.285, allocations: 4.844 MB / 0.6239 GB, free: 32.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/1.287, allocations: 0.5237 MB / 0.6244 GB, free: 32.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005333/1.287, allocations: 44.47 kB / 0.6245 GB, free: 32.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/1.289, allocations: 93.16 kB / 0.6246 GB, free: 32.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/1.289, allocations: 130.8 kB / 0.6247 GB, free: 32.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/1.29, allocations: 63 kB / 0.6248 GB, free: 32.38 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00465/1.294, allocations: 2.441 MB / 0.6271 GB, free: 31.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.547e-06/1.294, allocations: 0 / 0.6271 GB, free: 31.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00618/1.3, allocations: 0.8972 MB / 0.628 GB, free: 31.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 131 * 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.0004178/1.301, allocations: 190.1 kB / 0.6282 GB, free: 31.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006651/1.308, allocations: 3.553 MB / 0.6317 GB, free: 29.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/1.308, allocations: 0 / 0.6317 GB, free: 29.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/1.309, allocations: 0.6941 MB / 0.6323 GB, free: 29.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/1.312, allocations: 436.5 kB / 0.6328 GB, free: 28.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/1.327, allocations: 7.434 MB / 0.64 GB, free: 22.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004847/1.332, allocations: 3.226 MB / 0.6432 GB, free: 19.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008899/1.333, allocations: 278.6 kB / 0.6434 GB, free: 19.32 MB / 426.7 MB Notification: Performance of SimCode: time 2.096e-06/1.333, allocations: 0 / 0.6434 GB, free: 19.32 MB / 426.7 MB Notification: Performance of Templates: time 0.3275/1.66, allocations: 50.99 MB / 0.6932 GB, free: 87.14 MB / 442.7 MB