Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003453, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08624/0.0866, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3633/0.4499, allocations: 82.29 MB / 354.8 MB, free: 7.902 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003301/0.4503, allocations: 95.84 kB / 354.9 MB, free: 7.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2698/0.7201, allocations: 66.56 MB / 421.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7202, allocations: 4 kB / 421.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002454/0.7204, allocations: 67.98 kB / 421.6 MB, free: 10.62 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.01233/0.7328, allocations: 3.567 MB / 425.1 MB, free: 6.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.7329, allocations: 8.031 kB / 425.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0145/0.7474, allocations: 1.949 MB / 427.1 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007756/0.7552, allocations: 2.182 MB / 429.3 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003571/0.7555, allocations: 266.8 kB / 429.5 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001764/0.7573, allocations: 335.9 kB / 429.9 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2567/1.014, allocations: 8.109 MB / 438 MB, free: 76.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/1.014, allocations: 49.84 kB / 438 MB, free: 76.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001404/1.016, allocations: 173.8 kB / 438.2 MB, free: 76.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001726/1.017, allocations: 0.7847 MB / 439 MB, free: 76.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01687/1.034, allocations: 5.967 MB / 444.9 MB, free: 76.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04595/1.08, allocations: 39.9 MB / 484.8 MB, free: 47.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/1.085, allocations: 1.589 MB / 486.4 MB, free: 46.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00607/1.091, allocations: 2.832 MB / 489.3 MB, free: 45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/1.091, allocations: 40.5 kB / 489.3 MB, free: 44.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=80): time 4.649e-06/1.091, allocations: 0 / 489.3 MB, free: 44.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=80): time 0.006211/1.097, allocations: 1.953 MB / 491.2 MB, free: 44.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/1.097, allocations: 191.7 kB / 491.4 MB, free: 43.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009047/1.106, allocations: 4.091 MB / 495.5 MB, free: 42.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/1.106, allocations: 40.27 kB / 495.6 MB, free: 42.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002491/1.109, allocations: 2.823 MB / 498.4 MB, free: 40.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006365/1.11, allocations: 368.1 kB / 498.7 MB, free: 40.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005445/1.11, allocations: 94.69 kB / 498.8 MB, free: 40.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003443/1.111, allocations: 0.521 MB / 499.4 MB, free: 39.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002854/1.113, allocations: 1.249 MB / 0.4889 GB, free: 39.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004508/1.118, allocations: 4.813 MB / 0.4936 GB, free: 34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005273/1.123, allocations: 2.413 MB / 0.4959 GB, free: 33.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/1.123, allocations: 40.88 kB / 0.496 GB, free: 33.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=654) (initialization): time 0.01421/1.138, allocations: 5.599 MB / 0.5014 GB, free: 30.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-05/1.138, allocations: 67.92 kB / 0.5015 GB, free: 30.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.138, allocations: 128.3 kB / 0.5016 GB, free: 30.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/1.138, allocations: 182.9 kB / 0.5018 GB, free: 30.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006292/1.144, allocations: 1.165 MB / 0.5029 GB, free: 30.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002422/1.145, allocations: 252.2 kB / 0.5032 GB, free: 30.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005846/1.151, allocations: 0.7642 MB / 0.5039 GB, free: 30.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/1.152, allocations: 332.5 kB / 0.5042 GB, free: 30.12 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 585 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],ground.fixed.color[3],ground.fixed.color[2],ground.fixed.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.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 (630): * Single equations (assignments): 627 * 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.004682/1.156, allocations: 1.837 MB / 0.506 GB, free: 29.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008681/1.157, allocations: 323.3 kB / 0.5063 GB, free: 29.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/1.159, allocations: 0.5201 MB / 0.5069 GB, free: 28.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.283e-05/1.159, allocations: 15.69 kB / 0.5069 GB, free: 28.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/1.159, allocations: 2.562 kB / 0.5069 GB, free: 28.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/1.159, allocations: 12.56 kB / 0.5069 GB, free: 28.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009114/1.168, allocations: 3.428 MB / 0.5102 GB, free: 26.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/1.169, allocations: 13.59 kB / 0.5102 GB, free: 26.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009614/1.17, allocations: 100.9 kB / 0.5103 GB, free: 26.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/1.17, allocations: 4 kB / 0.5103 GB, free: 26.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.158e-05/1.17, allocations: 16 kB / 0.5104 GB, free: 26.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/1.17, allocations: 11.94 kB / 0.5104 GB, free: 26.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/1.17, allocations: 4 kB / 0.5104 GB, free: 26.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/1.173, allocations: 2.061 MB / 0.5124 GB, free: 24.74 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.174, allocations: 0.5443 MB / 0.5129 GB, free: 24.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005823/1.175, allocations: 12 kB / 0.5129 GB, free: 24.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/1.177, allocations: 60.39 kB / 0.513 GB, free: 24.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/1.177, allocations: 45.45 kB / 0.513 GB, free: 24.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.45e-05/1.177, allocations: 27.94 kB / 0.5131 GB, free: 24.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.006628/1.183, allocations: 2.624 MB / 0.5156 GB, free: 21.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.183, allocations: 0 / 0.5156 GB, free: 21.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005715/1.189, allocations: 0.8995 MB / 0.5165 GB, free: 21.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.v,position.s) * 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 (57): * Single equations (assignments): 54 * 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.0005714/1.19, allocations: 166 kB / 0.5167 GB, free: 20.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006605/1.196, allocations: 2.893 MB / 0.5195 GB, free: 18.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/1.196, allocations: 0 / 0.5195 GB, free: 18.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008433/1.197, allocations: 407 kB / 0.5199 GB, free: 18.01 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/1.2, allocations: 414.2 kB / 0.5203 GB, free: 17.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02263/1.223, allocations: 10.34 MB / 0.5304 GB, free: 8.832 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005251/1.228, allocations: 2.937 MB / 0.5332 GB, free: 6.586 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/1.229, allocations: 270.5 kB / 0.5335 GB, free: 6.336 MB / 346.7 MB Notification: Performance of SimCode: time 1.253e-06/1.229, allocations: 0 / 0.5335 GB, free: 6.336 MB / 346.7 MB Notification: Performance of Templates: time 0.3561/1.585, allocations: 49.13 MB / 0.5815 GB, free: 68.73 MB / 362.7 MB